C# Class SolidworksAddinFramework.CooperativeTask

Helper methods to implement cooperative tasks using coroutines (https://en.wikipedia.org/wiki/Coroutine)
显示文件 Open project: Weingartner/SolidworksAddinFramework

Public Methods

Method Description
Yield ( CancellationToken ct ) : Task

Allows an algorithm to specify a location where it may be paused or cancelled to allow other tasks to run or continue.

Method Details

Yield() public static method

Allows an algorithm to specify a location where it may be paused or cancelled to allow other tasks to run or continue.
public static Yield ( CancellationToken ct ) : Task
ct System.Threading.CancellationToken
return Task