C# Class NanoByte.Common.Tasks.SimpleTask

A delegate-driven task. Only completion is reported, no intermediate progress.
Inheritance: TaskBase
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
SimpleTask ( [ name, [ work, [ cancellationCallback = null ) : System

Creates a new simple task.

Protected Methods

Method Description
Execute ( ) : void

Method Details

Execute() protected method

protected Execute ( ) : void
return void

SimpleTask() public method

Creates a new simple task.
public SimpleTask ( [ name, [ work, [ cancellationCallback = null ) : System
name [ A name describing the task in human-readable form.
work [ The code to be executed by the task. May throw , or .
cancellationCallback [ A callback to be called when cancellation is requested via a .
return System