~singpolyma/em_promise.rb

7232fcfaa7f1636d4f257c6e0d05690cecdc48db — Stephen Paul Weber 3 months ago f757c35
Support #sync on Defferable
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/em_promise.rb
M lib/em_promise.rb => lib/em_promise.rb +1 -1
@@ 61,7 61,7 @@ module EventMachine
			EMPromise.new(self)
		end

		[:then, :rescue, :catch].each do |method|
		[:then, :rescue, :catch, :sync].each do |method|
			define_method(method) do |*args, &block|
				promise.public_send(method, *args, &block)
			end