#if NET_4_6 || NET_STANDARD_2_0 || CSHARP_7_OR_LATER using System; namespace UniRx.Async.Internal { internal static class FuncExtensions { // avoid lambda capture internal static Action AsFuncOfT(this Action action) { return new Action(action.Invoke); } static void Invoke(this Action action, T unused) { action(); } } } #endif