BanchoBot.waitForQuit - multiple declarations

Function BanchoBot.waitForQuit

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

Quit waitForQuit (
  bool delegate(Quit) check,
  core.time.Duration timeout
);

Throws

InterruptException on timeout

Parameters

NameDescription
check a delegate checking for which object to check for. Return true to return this object & not add it to the backlog.
timeout the timeout after which to interrupt the waiting task

Function BanchoBot.waitForQuit

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

Quit waitForQuit (
  bool delegate(Quit) check,
  core.time.Duration timeout
);

Throws

InterruptException on timeout

Parameters

NameDescription
check a delegate checking for which object to check for. Return true to return this object & not add it to the backlog.
timeout the timeout after which to interrupt the waiting task