Idle
class Idle (View source)
Methods
Destructor.
Await new messages on the connection.
Start listening for new messages using the idle() generator.
Get the folder to idle.
Issue a done command and restart the idle session.
Reconnect the client and restart the idle session.
Connect the client and select the folder to idle.
Disconnect the client.
End the current IDLE session.
Get the next timeout as a Carbon instance.
Details
__destruct()
Destructor.
void
await(callable $callback)
Await new messages on the connection.
protected void
listen(callable $callback, CarbonInterface $ttl)
Start listening for new messages using the idle() generator.
protected FolderInterface
folder()
Get the folder to idle.
protected void
restart()
Issue a done command and restart the idle session.
protected void
reconnect()
Reconnect the client and restart the idle session.
protected void
connect()
Connect the client and select the folder to idle.
protected void
disconnect()
Disconnect the client.
protected void
done()
End the current IDLE session.
protected Generator
idle(CarbonInterface $ttl)
Begin a new IDLE session as a generator.
protected CarbonInterface|false
getNextTimeout()
Get the next timeout as a Carbon instance.