1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-10-01 08:13:34 +00:00

use kj's onChildExit mechanism

This reduces code and allows for more idiosyncratic use of Promises.
Requires latest capnproto git.

Part of #49 refactor
This commit is contained in:
Oliver Giles
2018-08-03 14:36:24 +03:00
parent 4ffc22c657
commit a81492e5bc
12 changed files with 33 additions and 59 deletions

View File

@@ -48,6 +48,8 @@ public:
// add a one-shot timer callback
kj::Promise<void> addTimeout(int seconds, std::function<void()> cb);
// get a promise which resolves when a child process exits
kj::Promise<int> onChildExit(kj::Maybe<pid_t>& pid);
// add a path to be watched for changes
void addWatchPath(const char* dpath);