Griffon
  1. Griffon
  2. GRIFFON-278

Switch application event handling to synchronous mode

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2-beta-1
    • Fix Version/s: 0.9.2-beta-2
    • Component/s: rt
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Until now all event handlers are guaranteed to be called in a thread that is not the UI thread. This causes trouble with service injection during startup, as the services might not be ready when a controller wants to access them in mvcGroupInt(). The new strategy would be to notify event handlers in the same thread of the trigger (in synchronous mode) but it's true that asynchronous mode (at least on the UI thread) is also desirable.

        Activity

        Hide
        Andres Almiray added a comment -

        app.event() will now handle events synchronously in the same thread that fired the event.
        app.eventAsync() assures all event handles will be notified outside of the UI thread.

        Both EventRouter and EventPublisher (AST transform) ave been updated too.

        Show
        Andres Almiray added a comment - app.event() will now handle events synchronously in the same thread that fired the event. app.eventAsync() assures all event handles will be notified outside of the UI thread. Both EventRouter and EventPublisher (AST transform) ave been updated too.

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: