public static Fiber <SET, RES> CreateFiber(Action <Fiber <SET, RES>, SET> action) { var fiber = FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().CreateFiber(); fiber.Invoke(action); return(fiber); }
public static FiberManager <TYPE, SET, RES> GetInstance() { lock (lockthis) { if (_My == null) { _My = new FiberManager <TYPE, SET, RES>(); } } return(_My); }
public static void CloseAllFiber() { FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().Close(); }
public static Fiber <SET, RES> CreateFiber() { return(FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().CreateFiber()); }