CIRCT
20.0.0git
|
Public Member Functions | |
def | __init__ (self, Type result_type, cpp.MessageDataFuture cpp_future) |
bool | running (self) |
bool | done (self) |
Any | result (self, Optional[Union[int, float]] timeout=None) |
None | add_done_callback (self, Callable[[Future], object] fn) |
Public Attributes | |
result_type | |
cpp_future | |
A specialization of `Future` for ESI messages. Wraps the cpp object and deserializes the result. Hopefully overrides all the methods necessary for proper operation, which is assumed to be not all of them.
def esiaccel.types.MessageFuture.__init__ | ( | self, | |
Type | result_type, | ||
cpp.MessageDataFuture | cpp_future | ||
) |
None esiaccel.types.MessageFuture.add_done_callback | ( | self, | |
Callable[[Future], object] | fn | ||
) |
bool esiaccel.types.MessageFuture.done | ( | self | ) |
Definition at line 395 of file types.py.
References esiaccel.types.MessageFuture.cpp_future.
Any esiaccel.types.MessageFuture.result | ( | self, | |
Optional[Union[int, float]] | timeout = None |
||
) |
Definition at line 398 of file types.py.
References esiaccel.types.MessageFuture.cpp_future, circt::calyx::direction.get(), esiaccel.types.MessageFuture.result_type, and esiaccel.types.FunctionPort.result_type.
esiaccel.types.MessageFuture.cpp_future |
Definition at line 390 of file types.py.
Referenced by esiaccel.types.MessageFuture.done(), and esiaccel.types.MessageFuture.result().
esiaccel.types.MessageFuture.result_type |
Definition at line 389 of file types.py.
Referenced by esiaccel.types.FunctionPort.call(), and esiaccel.types.MessageFuture.result().