mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
WaitForRunning risks a race condition where the allocation succeeds and completes before WaitForRunning is called (or while it is running). Here, I made the behavior match the function documentation. I considered making it stricter, but callers need to account for allocation terminating immediately after WaitForRunning terminates anyway.