Documentation

Task
in

A runnable unit of execution.

Tags
template-covariant
template
template

Table of Contents

Methods

run()  : TResult
Executed when running the Task in a worker.

Methods

run()

Executed when running the Task in a worker.

public run(Channel<TReceive, TSend$channel, Cancellation $cancellation) : TResult
Parameters
$channel : Channel<TReceive, TSend>

Communication channel to parent process.

$cancellation : Cancellation

Tasks may safely ignore this parameter if they are not cancellable.

Return values
TResult

A specific type can (and should) be declared in implementing classes.


        
On this page

Search results