Skip to content

Instantly share code, notes, and snippets.

@renestein
Created May 26, 2014 09:54
Show Gist options
  • Save renestein/498ec4ba40d918bdf621 to your computer and use it in GitHub Desktop.
Save renestein/498ec4ba40d918bdf621 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace RStein.Async.Schedulers
{
public interface ITaskScheduler : IDisposable
{
int MaximumConcurrencyLevel
{
get;
}
IProxyScheduler ProxyScheduler
{
get;
set;
}
Task Complete
{
get;
}
void QueueTask(Task task);
bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued);
IEnumerable<Task> GetScheduledTasks();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment