www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22370] New: std.concurrency.spawn* should accept noreturn

https://issues.dlang.org/show_bug.cgi?id=22370

          Issue ID: 22370
           Summary: std.concurrency.spawn* should accept noreturn
                    callables
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

spawn[Linked] currently requires the passed callable to return void. This
restriction could be lifted to allow `noreturn` because both imply no actual
return value.

--
Oct 08 2021