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
{{ message }}
This repository was archived by the owner on May 15, 2023. It is now read-only.
This component is very important to the core operation of BT (or any mousebase-based modules). Similar to the Event Loop of NodeJS, this library is responsible for:
Ensuring runtime usage stays in a healthy range
Events are postponed when free runtime is running low
For the last point, consider the following snippet:
btp:setLanguage(language)
-- Because of the synchronous manner in which the above function is executed and this event is emitted,-- the below will not run in timebtp:once('languageChanged', function()
btp:tlbChatMsg(LOCBUILDER_CHANGED_LANG)
end)
By using the flow in which Node handles sequencing, we are able to queue the emission of languageChanged after the current task is completed, as a microTask (see process.nextTick).