最終更新:2021-07-30 (金) 17:27:30 (995d)  

asyncio.Future
Top / asyncio.Future

A Future represents an eventual result of an asynchronous operation. Not thread-safe.

https://docs.python.org/ja/3/library/asyncio-future.html#asyncio.Future

属性

結果

ステータス

  • pending
  • finished
  • cancelled

メソッド

Future.result?

Future.set_result?

  • 結果を格納されると自動的に futureオブジェクトのステータスは finishedに移行

Future.done?

関連