sharedThunk

fnSharedThunk!T sharedThunk(T, A...)(T function(A) @safe recipe, A arguments) @safe

Infer a shared thunk's payload from a noncapturing safe function.

Parameters

recipeNon-null safe function pointer, not a captured delegate.
argumentsAlready evaluated shareable bindings; the recipe is not invoked.

Returns

A pending shared computation.

Throws

InvalidThunkException for a null recipe.