mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 02:19:39 +08: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.