holgerbrandl / kalasim

Discrete Event Simulator
https://www.kalasim.org/
MIT License
68 stars 10 forks source link

Find a more concise way to activate a new processes #37

Closed holgerbrandl closed 2 years ago

holgerbrandl commented 2 years ago

Currently we need to yield(activate(process = Harvester::harvesting)) which seems too tedious. The average user will struggle is likely to struggle with this part of the API.

We could introduce a new verb such as activate(process) or simply change activate. `

holgerbrandl commented 2 years ago

We may also want to support to a yieldAll mode to consume an entire subprocess. Or is https://www.kalasim.org/component/#usage-of-process-interaction-methods-within-a-function-or-method sufficient?