mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 04:44:59 +00:00
Previously we were trying to handle both async and sync use cases in a single function, but it was confusing to read and led to subtle race conditions. This commit separates the async version into a separate function.