Skip to main content

How trigger works

1 reply [Last post]
Joined: 2008-07-30

Hello, i have a question again.. :)
Please Help me.. :)

attribute x = bind something on replace /* THIS TRIGGER IS PROCESS 1 */
//this triger is happened every 1 milisecond

private function doFunction():Void /* THIS FUNCTION IS PROCESS 2 */
//do something needs about 2 second calculation
//processing attribute, etc.

My question is, how "hold" the trigger events in order the "doFunction()" is finally done, and then continue with the "holded" trigger..


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-11-15

There is no build-in functionality for what you are asking.

The usual pattern would be to use a queue to save incoming events while doFunction runs and check at the end of doFunction if there are events waiting to be processed.