Skip to content

Monitor#interests could be nil #138

@ioquatix

Description

@ioquatix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions