Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
topo-sort.hh File Reference
#include "lix/libutil/error.hh"
#include "lix/libutil/result.hh"
#include <kj/async.h>

Go to the source code of this file.

Functions

template<typename T>
std::vector< T > nix::topoSort (std::set< T > items, std::function< std::set< T >(const T &)> getChildren, std::function< Error(const T &, const T &)> makeCycleError)
template<typename T>
kj::Promise< Result< std::vector< T > > > nix::topoSortAsync (std::set< T > items, std::function< kj::Promise< Result< std::set< T > > >(const T &)> getChildren, std::function< Error(const T &, const T &)> makeCycleError)