| 1 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. |
| 2 |
|
| 3 |
namespace System.Reactive |
| 4 |
{ |
| 5 |
internal static class Stubs<T> |
| 6 |
{ |
| 7 |
public static readonly Action<T> Ignore = _ => { }; |
| 8 |
public static readonly Func<T, T> I = _ => _; |
| 9 |
} |
| 10 |
|
| 11 |
internal static class Stubs |
| 12 |
{ |
| 13 |
public static readonly Action Nop = () => { }; |
| 14 |
public static readonly Action<Exception> Throw = ex => { ex.Throw(); }; |
| 15 |
} |
| 16 |
|
| 17 |
#if !NO_THREAD |
| 18 |
internal static class TimerStubs |
| 19 |
{ |
| 20 |
public static readonly System.Threading.Timer Never = new System.Threading.Timer(_ => { }); |
| 21 |
} |
| 22 |
#endif |
| 23 |
} |