Unverified Commit 1e75c181 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #835 from capnproto/rpc-server-drain

Add TwoPartyServer::drain().
parents c9b92630 c97d50c2
......@@ -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