Commit c97d50c2 authored by Kenton Varda's avatar Kenton Varda

Add TwoPartyServer::drain().

parent c9b92630
......@@ -148,6 +148,9 @@ public:
// Listen with support for FD transfers. `listener.accept()` must return instances of
// AsyncCapabilityStream, otherwise this will crash.
kj::Promise<void> drain() { return tasks.onEmpty(); }
// Resolves when all clients have disconnected.
private:
Capability::Client bootstrapInterface;
kj::TaskSet tasks;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment