New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 822466 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[Findit] Is there a more efficient way to extract a value from a future without using a dedicated pipeline?

Project Member Reported by lijeffrey@chromium.org, Mar 15 2018

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)


 

Comment 1 by st...@chromium.org, Apr 12 2018

Status: WontFix (was: Available)
This is impossible in the Pipeline Framework.

Sign in to add a comment