You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is hard to program state machines. It is more intuitive to program a continuous function and allow users to write Yield(numCycles) to say they want to wait for a certain amount of time and continue the context within the same program.
We can run the component with a go routine. Then we need a scheduler to decide which go routine can move forward. The yield function can actually register an event that takes go channel as an argument. The event handler will simply inject something to the go channel or close go channel to signal the go routine that it can continue executing.
The text was updated successfully, but these errors were encountered:
It is hard to program state machines. It is more intuitive to program a continuous function and allow users to write
Yield(numCycles)
to say they want to wait for a certain amount of time and continue the context within the same program.We can run the component with a go routine. Then we need a scheduler to decide which go routine can move forward. The yield function can actually register an event that takes go channel as an argument. The event handler will simply inject something to the go channel or close go channel to signal the go routine that it can continue executing.
The text was updated successfully, but these errors were encountered: