Sha256: 1aa811863d4dac579406eee66352e6282b66cfcef7387d60fe4355daca3b59e2
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
= Deferrable Deferrable provides a simple way to defer execution of a block without starting another process or thread. == Usage: class Foo include Deferrable def bar(opts = {}) deferred do # do something later end now_and_later do # do something now and when deferred blocks are executed # this could be useful for cache invalidations... yum end end def later complete_deferred # executes all deferred blocks in order end def nevermind clear_deferred # don't execute the deferred blocks after all end end == Install: gem install deferrable == License: Copyright (c) 2009 Justin Balthrop, Geni.com; Published under The MIT License, see LICENSE
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deferrable-0.2.0 | README.rdoc |