Does the event send an interrupt to a function?

Let's say the function foo () is executed. Suppose an external event occurs for which you have a handler. Will the foo () function be interrupted so that the event handler can be executed? What is the order of execution in this situation?

+5
source share
2 answers

No, foo()it will not be interrupted.

Flex is single-threaded, so it foo()will continue to work. After foo () finishes and control returns to the event loop, the first event in the event queue will be processed.

+5
source

It really can be tricky.

, Flash , , , #. , . , , .

:

  • Dr_Asik, , , . , . .

  • . . "" , . , foo() "Main" UI, , foo(), . foo() , . , foo() , , .

, foo() UI.

2 , foo() . .

# , Control.Invoke().

Flash, , . , Flash , #. , , , #, Java Delphi.

+1

All Articles