Manuscript (Case [Issue]20544) _Inbox - Monitor waitUntil:maxMilliseconds: does not respect timeout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]20544) _Inbox - Monitor waitUntil:maxMilliseconds: does not respect timeout

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  _Inbox: Not Spam  •  You are subscribed to this case
After my earlier edit, I figured out how to use the feature as is to obtain the desired behavior:

| mon now tfail millisecs|
mon := Monitor new.
millisecs := 3000.
now := DateAndTime current.
tfail := now + (Duration milliSeconds: millisecs) .
Transcript show: (now asString); cr.
Transcript show: (tfail asString); cr.
mon critical: [
mon waitUntil: [false or: ((DateAndTime current) >= tfail)] maxMilliseconds: millisecs.
].
Transcript show: (DateAndTime current asString); cr.
Priority Priority: 3 – Must Fix Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker