Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Make ObservableDeferred.observe() always return deferred. #6291

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

erikjohnston
Copy link
Member

This makes it easier to use in an async/await world.

Also fixes a bug where cache descriptors would occaisonally return a raw
value rather than a deferred. (Broke in #6263)

This makes it easier to use in an async/await world.

Also fixes a bug where cache descriptors would occaisonally return a raw
value rather than a deferred.
@erikjohnston erikjohnston requested a review from a team October 30, 2019 11:38
Copy link
Contributor

@babolivier babolivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

synapse/util/async_helpers.py Show resolved Hide resolved
@erikjohnston erikjohnston merged commit e5c3a99 into develop Oct 30, 2019
@erikjohnston erikjohnston deleted the erikj/fix_cache_descriptor branch January 9, 2020 15:47
@clokep clokep mentioned this pull request Jul 30, 2020
48 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants