Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Make "wait" action interruptible

#82

Currently, the "wait" action is not interruptible, meaning an experiment with an executing wait cannot be stopped. This is annoying and should be changed.

Reported by Christopher Stawarz · April 23rd, 2012 @ 10:30 AM

State: resolved
Milestone: 0.5.0
Assigned to: Christopher Stawarz Christopher Stawarz

Activity

  1. Christopher Stawarz
  2. Christopher Stawarz
    Christopher Stawarz

    This is almost a trivial change: Wait derives from Action, and Action derives from State, so you should be able to implement this by removing the sleep in Wait::execute and adding a Wait::next that returns an empty next state until the wait expires.

    Unfortunately, TaskSystemState spoils the party by ignoring the inherent State-ness of Action and calling execute directly on each contained action. So it seems that, if you want to change Wait as described above, you also have to change TaskSystemState to behave more like Block or other paradigm components.

    May 21st, 2012 @ 01:08 PM

  3. Christopher Stawarz
    Christopher Stawarz
    • Milestone set to 0.5.0
    • Milestone order changed from 168173 to 0

    June 13th, 2012 @ 02:07 PM

  4. Christopher Stawarz
    Christopher Stawarz
    • State changed from open to pending
    • Assigned user set to Christopher Stawarz
    • Milestone order changed from 6 to 0

    So it seems that, if you want to change Wait as described above, you also have to change TaskSystemState to behave more like Block or other paradigm components.

    Both changes are done on a branch

    July 17th, 2012 @ 03:29 PM

  5. Christopher Stawarz
    Christopher Stawarz
    • State changed from pending to resolved

    Merged to master

    October 3rd, 2012 @ 03:13 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.