Module: Concurrent::Promises::Future::NewChannelIntegration
- Included in:
- Concurrent::Promises::Future
- Defined in:
- lib/concurrent/edge/promises.rb
Instance Method Summary collapse
-
#then_push_channel(channel) ⇒ Future
A future which is fulfilled after the message is pushed to the channel.
Instance Method Details
#then_push_channel(channel) ⇒ Future
Returns a future which is fulfilled after the message is pushed to the channel. May take a moment if the channel is full.
2051 2052 2053 |
# File 'lib/concurrent/edge/promises.rb', line 2051 def then_push_channel(channel) self.then { |value| channel.push value }.flat_future end |