This extension can be included in Plugin classes, works only with ruby >= 1.9.3/2.0.0. Does currently not work with threads unfortunately :(
It does extend it with the following:
-
adds a
:fiber => true
option to map/map! command mappings, this envelops each call to the command action/method in a new Fiber block -
adds a new
wait_for
method that can be called from commands (that are mapped with:fiber => true
)