Skip to content

C# dispatch queue in the spirit of Grand Central Dispatch (GCD) and HawtDispatch.

License

Notifications You must be signed in to change notification settings

zzglitch/DispatchQueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DispatchQueue

C# dispatch queue in the spirit of Grand Central Dispatch (GCD) and HawtDispatch. A queue holds C# Actions which are run on a worker thread with the guarantee that it will only be active on one thread at a time.

Example Code

// create a thread pool based dispatch
ThreadPoolDispatcher dispatcher = new ThreadPoolDispatcher();

// create the queue from the dispatcher
IActionQueue queue = dispatcher.CreateQueue();

// queue an Action for processing 
queue.Enqueue(() => { Console.Out.WriteLine ("On worker thread"); });

About

C# dispatch queue in the spirit of Grand Central Dispatch (GCD) and HawtDispatch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages