BanchoBot.waitForQuit

Waits for an event or returns one which is in the backlog already. Removes matching backlog entries.

Parameters

check bool delegate @safe nothrow

a delegate checking for which object to check for. Return true to return this object & not add it to the backlog.

timeout Duration

the timeout after which to interrupt the waiting task

Return Value

Type: Quit

boolean if something was found within timeout (for try- prefix) or the result (for non try- prefix)

Throws

WaitTimeoutException on timeout (for non try- prefix)

Meta