C# Class AsyncDolls.AsyncDollsRecurseFree.PushMessages

Inheritance: IPushMessages
显示文件 Open project: danielmarbach/async-dolls Class Usage Examples

Public Methods

Method Description
PushMessages ( ConcurrentQueue messages, int maxConcurrency = 100 ) : System
StartAsync ( Task>.Func onMessage ) : Task
StopAsync ( ) : Task

Method Details

PushMessages() public method

public PushMessages ( ConcurrentQueue messages, int maxConcurrency = 100 ) : System
messages ConcurrentQueue
maxConcurrency int
return System

StartAsync() public method

public StartAsync ( Task>.Func onMessage ) : Task
onMessage Task>.Func
return Task

StopAsync() public method

public StopAsync ( ) : Task
return Task