Commit 4f05f0f2 authored by Kenton Varda's avatar Kenton Varda

Merge pull request #198 from dwrensha/update

Update obsolete comments.
parents 5bb73b48 ada65448
......@@ -90,7 +90,7 @@ class EzRpcClient {
// Some of these restrictions will probably be lifted in future versions, but some things will
// always require using the low-level interfaces directly. If you are interested in working
// at a lower level, start by looking at these interfaces:
// - `kj::startAsyncIo()` in `kj/async-io.h`.
// - `kj::setupAsyncIo()` in `kj/async-io.h`.
// - `RpcSystem` in `capnp/rpc.h`.
// - `TwoPartyVatNetwork` in `capnp/rpc-twoparty.h`.
......
......@@ -431,7 +431,7 @@ private:
State state;
Own<PromiseNode> inner;
// In PRE_STEP1 / STEP1, a PromiseNode for a Promise<T>.
// In STEP1, a PromiseNode for a Promise<T>.
// In STEP2, a PromiseNode for a T.
Event* onReadyEvent = nullptr;
......
......@@ -473,7 +473,7 @@ AsyncIoContext setupAsyncIo();
//
// // And we can wait for the promise to complete. Note that you can only use `wait()`
// // from the top level, not from inside a promise callback.
// String text = textPromise.wait();
// String text = textPromise.wait(ioContext.waitScope);
// print(text);
// return 0;
// }
......
......@@ -148,7 +148,7 @@ void registerSignalHandler(int signum) {
void registerReservedSignal() {
registerSignalHandler(reservedSignal);
// We also disable SIGPIPE because users of UnixEventLoop almost certainly don't want it.
// We also disable SIGPIPE because users of UnixEventPort almost certainly don't want it.
while (signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
int error = errno;
if (error != EINTR) {
......
......@@ -597,7 +597,7 @@ class EventLoop {
// return 0;
// }
//
// Most applications that do I/O will prefer to use `setupIoEventLoop()` from `async-io.h` rather
// Most applications that do I/O will prefer to use `setupAsyncIo()` from `async-io.h` rather
// than allocate an `EventLoop` directly.
public:
......
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