-
Notifications
You must be signed in to change notification settings - Fork 17
chore: move CancelledError and InvalidStateError to tasks #55
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
Changes from 1 commit
529b01d
516dc86
3fd6059
3921b20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,18 @@ | |
| from . import core | ||
|
|
||
|
|
||
| class CancelledError(BaseException): | ||
| """Injected into a task when calling `Task.cancel()`""" | ||
|
|
||
| pass | ||
|
|
||
|
|
||
| class InvalidStateError(Exception): | ||
| """Can be raised in situations like setting a result value for a task object that already has a result value set.""" | ||
|
|
||
| pass | ||
|
|
||
|
|
||
|
||
| # pairing-heap meld of 2 heaps; O(1) | ||
| def ph_meld(h1, h2): | ||
| if h1 is None: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.