mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 18:12:11 +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.