Api::resume()
and throw()
make it difficult to integrate with sync code.
#125
Milestone
Api::resume()
and throw()
make it difficult to integrate with sync code.
#125
The intent of these methods was to provide a way to resume strands as part of the kernel API, so that it may be versioned independently of the underlying strand implementation (#124). However, using these operations (exclusively) means that you can't resume strands from outside a coroutine.
Long story short, there needs to be a way to resume strands from "regular PHP code" that is part of the public API.
Strand
already implementsListener
, so perhaps this is as simple as packaging and versioningListener
along withApi
.FYI @koden-km
The text was updated successfully, but these errors were encountered: