[Findit] Is there a more efficient way to extract a value from a future without using a dedicated pipeline? |
|
Issue description
def A(AsynchronousPipeline):
input_type = ...
output_type = some_future
def RunImpl(...):
...
...
some_future = yield(A)
return some_future.field <-- Is there some way to do this without using a dedicated pipeline?
Currently the only way to do this would be
def B(SynchronousPipeline):
input_type = some_future
output_type = some_value
def RunImpl(self, future):
return future.some_field
...
some_future = yield A()
yield B(some_future)
|
|
►
Sign in to add a comment |
|
Comment 1 by st...@chromium.org
, Apr 12 2018