diff options
author | Matt Joiner <anacrolix@gmail.com> | 2019-11-02 21:42:51 +1100 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2019-11-02 21:42:51 +1100 |
commit | 37d974cae9a0bc06ccdf26b0ff16f14ded1eac02 (patch) | |
tree | bf6edad46d143271f90fa1dc18bda81e869d4a28 /var.go | |
parent | Add stmutil containers and ContextDoneVar (diff) | |
download | stm-37d974cae9a0bc06ccdf26b0ff16f14ded1eac02.tar.gz stm-37d974cae9a0bc06ccdf26b0ff16f14ded1eac02.tar.xz |
stmutil.ContextDoneVar: Return true Var if the context is already done
This prevents needless races, such as in some of the rate limiting tests.
Diffstat (limited to 'var.go')
0 files changed, 0 insertions, 0 deletions