Convert a result channel to a standard Future.
Convert a result channel to a standard Future. Note that a result
can be already retrieved synchronously (i.e. in a blocking manner)
from a result channel using its get_!
method. This is only present
for interoperability.
Note: this method can not be implemented as a class member of molecule.channel.RIChan because Future is invariant in its type parameter.
a RIChan with a Future.
Class that enriches a RIChan with a
future
methods.(The implicit conversion is located in the main Molecule object imported by end-users.)
the type of the message returned by the channel