RedisSubscriberImpl.listen

Waits for messages and calls the callback with the channel and the message as arguments. The timeout is passed over to the listener, which closes after the period of inactivity. Use 0.seconds timeout to specify a very long time (365 days) Errors will be sent to Callback Delegate on channel "Error".

  1. Task listen(void delegate(string, string) @(safe) nothrow callback, Duration timeout)
  2. Task listen(void delegate(string, string) @(system) onMessage, Duration timeout)
  3. Task listen(void delegate(string, string) @(safe) callback, Duration timeout)
    class RedisSubscriberImpl
    deprecated
    Task
    listen
    (
    void delegate
    (
    string
    ,
    string
    )
    @safe
    callback
    ,
    Duration timeout = 0.seconds
    )

Meta