#include "lix/libutil/error.hh"
#include "lix/libutil/result.hh"
#include <kj/async.h>
Go to the source code of this file.
|
|
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) |