- tensorstore.Future.add_done_callback(self, callback: Callable[[Future], None]) None
Registers a callback to be invoked upon completion of the asynchronous operation.
- Parameters:¶
Warning
Unlike
asyncio.Future.add_done_callback
, but likeconcurrent.futures.Future.add_done_callback
, thecallback
may be invoked from any thread. If usingasyncio
andcallback
needs to be invoked from a particular event loop, wrapcallback
withasyncio.loop.call_soon_threadsafe
.