-
Notifications
You must be signed in to change notification settings - Fork 35
Add lifted version of Async.cancelMany #330
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
Add lifted version of Async.cancelMany #330
Conversation
|
|
||
| build-depends: base >= 4.14 && < 5 | ||
| , async >= 2.2.2 | ||
| , async >= 2.2.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to do this since cancelMany is only in async from this version. If that's undesirable I can look into making its definition conditional on the version, using CPP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for CPP, it's fine.
arybczak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍 Please add a changelog entry "Add cancelMany to Effectful.Concurrent.Async".
|
|
||
| build-depends: base >= 4.14 && < 5 | ||
| , async >= 2.2.2 | ||
| , async >= 2.2.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for CPP, it's fine.
| cancel = unsafeEff_ . A.cancel | ||
|
|
||
| -- | Lifted 'A.cancelMany'. | ||
| cancelMany :: Concurrent :> es => [Async a] -> Eff es () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not exported, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed I forgot to export it! (Thankfully CI caught that too.)
bb093e2 to
8b27c64
Compare
No description provided.