logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Message::Passing::Filter::Delay - Delay messages for some time.

Attributes

delay_for
       Floating point number, indicating how many seconds to delay messages for.

Description

       This filter passes all incoming messages through with no changes, however not immediately - they are
       delayed .

       You would normally never want to use this, but it can be useful for testing occasionally, or avoiding
       race conditions.

Methods

consume($msg)
       Sets up a timed callback in the event loop, which passes the message to the output (and deletes itself)
       once the timeout has expired

Name

       Message::Passing::Filter::Delay - Delay messages for some time.

Sponsorship

       This module exists due to the wonderful people at Suretec Systems Ltd.  <http://www.suretecsystems.com/>
       who sponsored its development for its VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use
       with the SureVoIP API - <http://www.surevoip.co.uk/support/wiki/api_documentation>

See Also