Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@veritas-vos-liberabit.com>2012-11-12 22:47:31 +0400
committerAtsushi Eno <atsushieno@veritas-vos-liberabit.com>2012-11-12 22:52:17 +0400
commitd1174f3f8979321a9182925df460e07e08157b41 (patch)
treed16fb2fc191bf68ff0e2aac600adf71aba8cad01 /Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs
parentd90a52595e24b1216c89f6cb5f245262db1810ae (diff)
partial import of ca05fdeb565e: Reactive Extensions OSS V1.0
Diffstat (limited to 'Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs')
-rw-r--r--Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs b/Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs
new file mode 100644
index 0000000..858b640
--- /dev/null
+++ b/Rx.NET/Tests.System.Reactive/TestTaskScheduler.cs
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
+
+#if !NO_TPL
+using System.Collections.Generic;
+using System.Threading.Tasks;
+
+namespace ReactiveTests
+{
+ class TestTaskScheduler : TaskScheduler
+ {
+ protected override void QueueTask(Task task)
+ {
+ TryExecuteTaskInline(task, false);
+ }
+
+ protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
+ {
+ return TryExecuteTask(task);
+ }
+
+ protected override IEnumerable<Task> GetScheduledTasks()
+ {
+ return null;
+ }
+ }
+}
+#endif \ No newline at end of file