Enable support for timeouts in FileDescriptorEvent.wait.
This commit is contained in:
parent
5e979364cb
commit
62ee67091d
|
@ -1011,7 +1011,7 @@ struct FileDescriptorEvent {
|
||||||
|
|
||||||
Waitable!(IOCallback,
|
Waitable!(IOCallback,
|
||||||
cb => eventDriver.sockets.waitForData(m_socket, cb),
|
cb => eventDriver.sockets.waitForData(m_socket, cb),
|
||||||
(cb) { assert(false, "timeout not supported."); }
|
cb => eventDriver.sockets.cancelRead(m_socket)
|
||||||
) readwaiter;
|
) readwaiter;
|
||||||
|
|
||||||
asyncAwaitAny!true(timeout, readwaiter);
|
asyncAwaitAny!true(timeout, readwaiter);
|
||||||
|
|
Loading…
Reference in a new issue