Created
May 26, 2014 09:54
-
-
Save renestein/498ec4ba40d918bdf621 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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