Debian Codegraph @

external/rx/Rx/NET/Source/Tests.System.Reactive/TestTaskScheduler.cs

raw
1 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
2
3 #if !NO_TPL
4 using System.Collections.Generic;
5 using System.Threading.Tasks;
6
7 namespace ReactiveTests
8 {
9 class TestTaskScheduler : TaskScheduler
10 {
11 protected override void QueueTask(Task task)
12 {
13 TryExecuteTaskInline(task, false);
14 }
15
16 protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
17 {
18 return TryExecuteTask(task);
19 }
20
21 protected override IEnumerable<Task> GetScheduledTasks()
22 {
23 return null;
24 }
25 }
26 }
27 #endif