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
Time-consuming operations (including animate, play, etc.) default to blocking, with non-blocking versions provided.
Non-blocking versions should have a "start" prefix.
Details
play
// play sound till endfuncplay(soundSound)
funcplay(soundNamestring)
funcplay(soundSound, options*PlayOptions)
funcplay(soundNamestring, options*PlayOptions)
// start playing sound & return immediatelyfuncstartPlay(soundSound)
funcstartPlay(soundNamestring)
funcstartPlay(soundSound, options*PlayOptions)
funcstartPlay(soundNamestring, options*PlayOptions)
animate
// play animation till endfuncanimate(namestring)
// start playing animation & return immediatelyfuncstartAnimate(namestring)
glide, step, turn, turnTo
These are considered high-level APIs, which are expected to be extended in the same way, while in the future.
broadcast
broadcast appears different because "waiting" should not be included in the "broadcast" process by default.
// do broadcastfuncbroadcast(msgstring)
funcbroadcast(msgstring, datainterface{})
// do broadcast and wait until all activated scripts endfuncbroadcastAndWait(msgstring)
funcbroadcastAndWait(msgstring, datainterface{})
The text was updated successfully, but these errors were encountered:
Goal
This is part of #337 and aimed to address
Adjustments
This issue proposes adjustments to current APIs:
animate
,play
, etc.) default to blocking, with non-blocking versions provided.Details
play
animate
glide
,step
,turn
,turnTo
These are considered high-level APIs, which are expected to be extended in the same way, while in the future.
broadcast
broadcast
appears different because "waiting" should not be included in the "broadcast" process by default.The text was updated successfully, but these errors were encountered: