Skip to content

Thread.Pool.spawn doesn't allow functions with same signatures as Thread.spawn does #18810

@pedramcode

Description

@pedramcode

Zig Version

0.12.0-dev.2543+9eda6ccef

Steps to Reproduce and Observed Behavior

/home/ABC/.zig/lib/std/Thread/Pool.zig:93:13: error: error is ignored
            @call(.auto, func, closure.arguments);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ABC/.zig/lib/std/Thread/Pool.zig:93:13: note: consider using 'try', 'catch', or 'if'

Expected Behavior

Not throwing that error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions