[Issue 22370] std.concurrency.spawn* should accept noreturn callables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 14 18:49:55 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22370
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8276 "Fix 22370 - Accept noreturn callables in
std.concurrency.spawn[Linked]" was merged into master:
- c644eba3e6f305388217509d903e22ba12c75071 by MoonlightSentinel:
Fix 22370 - Accept noreturn callables in std.concurrency.spawn[Linked]
`spawn[Linked]` required the passed callable to return `void`. This is
unecessarily strict because both `void` and `noreturn` imply that no
actual value will be returned by the callable.
https://github.com/dlang/phobos/pull/8276
--
More information about the Digitalmars-d-bugs
mailing list