-
-
Notifications
You must be signed in to change notification settings - Fork 91
Monitor#interests could be nil #138
Copy link
Copy link
Closed
Description
I'd like a way for a monitor to continue to exist, but for it's current interests to be nil. In the context of an async reactor, I think this makes sense - sometimes a task is waiting on IO (monitor lazily initialised) and sometimes other things (e.g. sleep). In the case of sleep, I don't want to be woken up because some IO event happened on a previously monitored task.
One option is to set/clear value, but this feels a bit like a hack. It would be nice to simply say @monitor.intersts = nil
Does this make sense?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels