- tensorstore.Future[T].add_done_callback(self, callback: Callable[[Future[T]], 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, thecallbackmay be invoked from any thread. If usingasyncioandcallbackneeds to be invoked from a particular event loop, wrapcallbackwithasyncio.loop.call_soon_threadsafe.