mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
ircd::ctx: Add critical_assertion for when_() templates.
This commit is contained in:
parent
130a86e27c
commit
48468a32f0
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,8 @@ ircd::ctx::when_any(it first,
|
|||
const it &last,
|
||||
F&& closure)
|
||||
{
|
||||
const critical_assertion ca;
|
||||
|
||||
promise<it> p;
|
||||
future<it> ret(p);
|
||||
for(auto f(first); f != last; ++f)
|
||||
|
@ -108,6 +110,8 @@ ircd::ctx::when_all(it first,
|
|||
const it &last,
|
||||
F&& closure)
|
||||
{
|
||||
const critical_assertion ca;
|
||||
|
||||
promise<void> p;
|
||||
future<void> ret(p);
|
||||
for(; first != last; ++first)
|
||||
|
|
Loading…
Reference in a new issue