This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add delay_cancellation
utility function
#12180
Merged
Merged
Commits on Mar 8, 2022
-
Tweak docstring for
stop_cancellation
Signed-off-by: Sean Quah <seanq@element.io>
Sean Quah committedMar 8, 2022 Configuration menu - View commit details
-
Copy full SHA for fa97936 - Browse repository at this point
Copy the full SHA fa97936View commit details -
Quote
Deferred
type hint instop_cancellation
Signed-off-by: Sean Quah <seanq@element.io>
Sean Quah committedMar 8, 2022 Configuration menu - View commit details
-
Copy full SHA for b02f8e8 - Browse repository at this point
Copy the full SHA b02f8e8View commit details -
Refactor
stop_cancellation
tests to allow reuse for `delay_cancella……tion` Signed-off-by: Sean Quah <seanq@element.io>
Sean Quah committedMar 8, 2022 Configuration menu - View commit details
-
Copy full SHA for a9550f2 - Browse repository at this point
Copy the full SHA a9550f2View commit details -
Add
delay_cancellation
utility function`delay_cancellation` behaves like `stop_cancellation`, except it delays `CancelledError`s until the original `Deferred` resolves. This is handy for unifying cleanup paths and ensuring that uncancelled coroutines don't use finished logcontexts. Signed-off-by: Sean Quah <seanq@element.io>
Sean Quah committedMar 8, 2022 Configuration menu - View commit details
-
Copy full SHA for 6feaf20 - Browse repository at this point
Copy the full SHA 6feaf20View commit details -
Signed-off-by: Sean Quah <seanq@element.io>
Sean Quah committedMar 8, 2022 Configuration menu - View commit details
-
Copy full SHA for e9210b2 - Browse repository at this point
Copy the full SHA e9210b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab9b9e1 - Browse repository at this point
Copy the full SHA ab9b9e1View commit details
Commits on Mar 9, 2022
-
Parameterize
CancellationWrapperTests
with a string instead of lambdasSean Quah committedMar 9, 2022 Configuration menu - View commit details
-
Copy full SHA for 6de5030 - Browse repository at this point
Copy the full SHA 6de5030View commit details -
Bake in
all=True
argument, since we've yet to come across a use cas……e for only delaying the first cancellation
Sean Quah committedMar 9, 2022 Configuration menu - View commit details
-
Copy full SHA for 543fafb - Browse repository at this point
Copy the full SHA 543fafbView commit details -
Sean Quah committed
Mar 9, 2022 Configuration menu - View commit details
-
Copy full SHA for 2542f74 - Browse repository at this point
Copy the full SHA 2542f74View commit details -
Remove second cancel in logcontext test. Now that we're using a custo…
…m canceller, there's no point
Sean Quah committedMar 9, 2022 Configuration menu - View commit details
-
Copy full SHA for a997133 - Browse repository at this point
Copy the full SHA a997133View commit details
Commits on Mar 14, 2022
-
Sean Quah committed
Mar 14, 2022 Configuration menu - View commit details
-
Copy full SHA for 27274dc - Browse repository at this point
Copy the full SHA 27274dcView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.