BanchoBot.tryWaitForTopic
- bool tryWaitForMessage(bool delegate(Message) @(safe) nothrow check, Duration timeout, Message result)
- bool tryWaitForQuit(bool delegate(Quit) @(safe) nothrow check, Duration timeout, Quit result)
- bool tryWaitForTopic(bool delegate(TopicChange) @(safe) nothrow check, Duration timeout, TopicChange result)
class BanchoBot
bool
tryWaitForTopic
(bool delegate @safe nothrow check ,,) - bool tryWaitForMembership(bool delegate(MembershipEvent) @(safe) nothrow check, Duration timeout, MembershipEvent result)
- Message waitForMessage(bool delegate(Message) @(safe) nothrow check, Duration timeout)
- Quit waitForQuit(bool delegate(Quit) @(safe) nothrow check, Duration timeout)
- TopicChange waitForTopic(bool delegate(TopicChange) @(safe) nothrow check, Duration timeout)
- MembershipEvent waitForMembership(bool delegate(MembershipEvent) @(safe) nothrow check, Duration timeout)
Parameters
- check bool delegate @safe nothrow
- timeout Duration
Return Value
Throws
bancho irc BanchoBot
constructorsdestructorsfunctionsmixinsvariables
Waits for an event or returns one which is in the backlog already. Removes matching backlog entries.