Skip to content

Instantly share code, notes, and snippets.

@bpo
Created February 17, 2010 19:30
Show Gist options
  • Save bpo/306935 to your computer and use it in GitHub Desktop.
Save bpo/306935 to your computer and use it in GitHub Desktop.
Please create a mixin which adds 'send_later' support to objects of the class it's included on.
Async#send_later( :method, *args )
Calling `send_later` on an object with the Async ducktype should cause the message to be executed asynchronously.
Your implementation should not rely on anything other than the Ruby standard library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment