[Issue 22370] std.concurrency.spawn* should accept noreturn callables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 14 13:12:39 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22370
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #8276 "Fix 22370 - Accept
noreturn callables in std.concurrency.spawn[Linked]" fixing this issue:
- 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