-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Refactor Linearizer
, convert methods to async and use an async context manager
#12357
Commits on Apr 1, 2022
-
Add docstrings to
Linearizer
test casesSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for e0c1444 - Browse repository at this point
Copy the full SHA e0c1444View commit details -
Add comments to
Linearizer
testsSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 071618d - Browse repository at this point
Copy the full SHA 071618dView commit details -
Add helper methods to create a linearized task and pump the reactor
Signed-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 45ce571 - Browse repository at this point
Copy the full SHA 45ce571View commit details -
Convert
Linearizer
tests frominlineCallbacks
to asyncSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 7842add - Browse repository at this point
Copy the full SHA 7842addView commit details -
Add missing type hints to
Linearizer
testsSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 4cca457 - Browse repository at this point
Copy the full SHA 4cca457View commit details -
Sean Quah committed
Apr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 5bfb04d - Browse repository at this point
Copy the full SHA 5bfb04dView commit details -
fixup typo in
test_lots_of_queued_things
docstringSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for ba5839c - Browse repository at this point
Copy the full SHA ba5839cView commit details -
fixup: add helpful message to assert
Signed-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 632bd38 - Browse repository at this point
Copy the full SHA 632bd38View commit details -
Convert
Linearizer
methods to asyncSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for ac80234 - Browse repository at this point
Copy the full SHA ac80234View commit details -
Refactor
Linearizer._await_lock
, moving preconditions insideSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for f96583d - Browse repository at this point
Copy the full SHA f96583dView commit details -
Factor out a
Linearizer._release_lock()
method.Signed-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for adf5d14 - Browse repository at this point
Copy the full SHA adf5d14View commit details -
Convert
Linearizer
to use an async context managerEliminates an unlikely footgun where code that doesn't immediately use the context manager could forget to release the lock. Signed-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 744cbbe - Browse repository at this point
Copy the full SHA 744cbbeView commit details -
Convert
Linearizer
to use an async context managerSigned-off-by: Sean Quah <[email protected]>
Sean Quah committedApr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 3fcd05b - Browse repository at this point
Copy the full SHA 3fcd05bView commit details -
Sean Quah committed
Apr 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 31fda92 - Browse repository at this point
Copy the full SHA 31fda92View commit details
Commits on Apr 4, 2022
-
Early return and outdent the slow path
Sean Quah committedApr 4, 2022 Configuration menu - View commit details
-
Copy full SHA for 9de8d18 - Browse repository at this point
Copy the full SHA 9de8d18View commit details -
Sean Quah committed
Apr 4, 2022 Configuration menu - View commit details
-
Copy full SHA for 039872e - Browse repository at this point
Copy the full SHA 039872eView commit details
Commits on Apr 5, 2022
-
Update synapse/util/async_helpers.py
Co-authored-by: Richard van der Hoff <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb7a8e3 - Browse repository at this point
Copy the full SHA bb7a8e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e41a7ee - Browse repository at this point
Copy the full SHA e41a7eeView commit details