-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flash.events package #82
Comments
once we have a native timer callback we should be able to create a non-blocking event loop eg this is blocking while( true )
{
// event loop
}
// code not executed here this should be non-blocking function myEventLoop():void
{
// event loop
}
Program.setTimerListener( 1, myEventLoop );
// code executed here
// ... addEventListener/removeEventListener/ native/internal events dispatch
// event loop kick-in at 1 sec
// ...
// event loop kick-in at 2 sec
// ... addEventListener/removeEventListener/ native/internal events dispatch
// event loop kick-in at 3 sec
// etc.
// program flow continue till exit()
// option to block and wait all events complete before exit |
we have events working a main interface primordial worker run the main differences are things that the main worker can do that child workers can not do
now the work is to find good balance to be able to spawn worker to do async tasks for ex: with scenarios are
at first, we might allow to create focus is |
Do a first draft implementation of the whole
flash.events
packagesee for reference documentation
Goal
eg. keep
Event
class as mock but implement all the child classesEvent
andEventDispatcher
implementationdo a very basic simple one, provide internal hooks
implementation in betalibthis is meta issue related to
The text was updated successfully, but these errors were encountered: