Skip to content

Difference between hold and wait #61

Answered by holgerbrandl
chronvas asked this question in Q&A
Discussion options

You must be logged in to vote

See
https://www.kalasim.org/state/#process-interaction-with-wait
and
https://www.kalasim.org/component/#hold

Admittedly, in particular hold could be emphasized better in the docs, as it is the most important method in the entire API.

The names were simply kept when porting a python library salabmin to kotlin when creating kalasim. pause does not sound much better to me compared to hold because all suspension functions in the Component API do pause in some way or another. But if there's a sound argument, the naming could be changed to ease the usage of the library.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by holgerbrandl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants