Ice.FutureLike¶
- class Ice.FutureLike(*args, **kwargs)¶
Bases:
Protocol[_T_co]A protocol that defines an interface for objects that behave like a
Future.- add_done_callback(callback: Callable[[FutureLike], Any], /) None¶
Adds a callback to be run when the
Futureis done.- Parameters:
callback (Callable[[FutureLike], Any]) – A callable that takes the
Futureobject as its only argument. Will be called when theFuturecompletes (successfully, with exception, or cancelled).- Return type:
None