Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cancel blocking operations #413

Open
arjunguha opened this issue Oct 30, 2018 · 0 comments
Open

cancel blocking operations #413

arjunguha opened this issue Oct 30, 2018 · 0 comments

Comments

@arjunguha
Copy link
Member

Conversation with SamL:

if you want sleep() to be cancellable
it needs to cooperate
e.g., the person who writes sleep needs to have a handler that gets called by pause
so there needs to be an API change
i would say that pauseImmediate changes to have this type
ugh no its more complicated
you want to stop sleep, not pause it
stopify right now doesn't make a distinction
let's pretend it did (so first make that change), then
change the type to pauseImmediate(callback: (registerCancel : (handler: () => void) => void) => void): void

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant