CIRCT  20.0.0git
Public Member Functions | Public Attributes | List of all members
esiaccel.types.MessageFuture Class Reference
Inheritance diagram for esiaccel.types.MessageFuture:
Inheritance graph
[legend]
Collaboration diagram for esiaccel.types.MessageFuture:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Definition at line 382 of file types.py.

Constructor & Destructor Documentation

◆ __init__()

def esiaccel.types.MessageFuture.__init__ (   self,
Type  result_type,
cpp.MessageDataFuture  cpp_future 
)

Definition at line 387 of file types.py.

Member Function Documentation

◆ add_done_callback()

None esiaccel.types.MessageFuture.add_done_callback (   self,
Callable[[Future], object]  fn 
)

Definition at line 406 of file types.py.

◆ done()

bool esiaccel.types.MessageFuture.done (   self)

Definition at line 394 of file types.py.

References esiaccel.types.MessageFuture.cpp_future.

◆ result()

Any esiaccel.types.MessageFuture.result (   self,
Optional[Union[int, float]]   timeout = None 
)

◆ running()

bool esiaccel.types.MessageFuture.running (   self)

Definition at line 391 of file types.py.

Member Data Documentation

◆ cpp_future

esiaccel.types.MessageFuture.cpp_future

◆ result_type

esiaccel.types.MessageFuture.result_type

The documentation for this class was generated from the following file: