It turned out that tony vignaux and chang chui had previously created another python library that was conceptually closer to simscript , and that used standard threading rather than my semi - coroutine technique 結(jié)果表明tony vignaux和chang chui以前曾創(chuàng)建了另一個(gè)python庫,它在概念上更接近于simscript ,而且該庫使用了標(biāo)準(zhǔn)線程技術(shù),而不是我的半?yún)f(xié)同例程技術(shù)。
Coroutines are computer program components that generalize subroutines to allow multiple entry points for suspending and resuming execution at certain locations. Coroutines are well-suited for implementing more familiar program components such as cooperative tasks, iterators, infinite lists and pipes.