Skip to content

Commit

Permalink
added proper implementation of Future#with_value:
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Feb 17, 2012
1 parent f4b0c35 commit 9d89997
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/msgpack.fy
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ class MessagePack RPC Future {
attach_callback(&block)
}

alias_method: 'with_value: for: 'when_done:
def with_value: block {
when_done: |f| {
block call: [f value]
}
}
}

0 comments on commit 9d89997

Please sign in to comment.