Code Monkey home page Code Monkey logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Does "breaks" means that the second event does not get dispatched?

Remember that you have to call the generator callback from your command when
you're done to signal the generator to dispatch the next event; that's how it
is supposed to work works.

The generator dispatches UMEvents which have a callbacks
property which must implement IResponder.  IResponder has result and fault
methods which you use to signal that you are done with your command.  If your
event generator is running in sequence (that's the default configuration), you
have to run one of these methods from your command when you're finished with 
what you
were doing so that the EventGenerator can know that it can proceed with the
next event.   It will wait (on purpose) for you to run it method.

What you did with your change was turning your sequenced generator into a
parallel generator that doesn't have to wait for the callbacks to be run in
order to dispatch the next event; all the events get dispatched on the same
frame.  But to achieve that you should just change trigger property
from TRIGGER_SEQUENCE to TRIGGER_PARALLEL using the unchanged class.

Original comment by [email protected] on 13 May 2008 at 3:23

from flexcairngorm.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 4, 2024
Hi Gabriel,

regarding this event chaining question, I was wondering if
notifyCaller() could also be extended in order to handle the
callback to the EventGenerator from the command to trigger 
the next event instead of doing event.callback.result(). 
The notifyCaller() would the notify views but also the eventgenerator
if a callback is available in the event...
What do you think?

Thanks for any answer.
Cédric

Original comment by [email protected] on 5 Nov 2008 at 9:03

from flexcairngorm.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.