Retourner au contenu associé (journal : La programmation concurrente en mode Goto)
Posté par Glandos le 11 juin 2018 à 09:29. En réponse au journal La programmation concurrente en mode Goto. Évalué à 4.
Effectivement, comme déjà dit, foo() est qualifiée par async.
foo()
async
Un bon exemple (avec ipython):
ipython
In [1]: async def foo(): ...: print('1') ...: In [2]: def bar(): ...: print('2') ...: In [3]: bar() 2 In [4]: foo() Out[4]: <coroutine object foo at 0x7fc5c6adae08>
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: question sur article sametmax
Posté par Glandos . En réponse au journal La programmation concurrente en mode Goto. Évalué à 4.
Effectivement, comme déjà dit,
foo()est qualifiée parasync.Un bon exemple (avec
ipython):