private static Thread GetThread(ForkCall call) { var thread = new Thread(GetThreadStart(call)) { IsBackground = true }; thread.Start(); return(thread); }
private static ThreadStart GetThreadStart(ForkCall call) { ThreadStart ts = () => call(); return ts; }
private static Thread GetThread(ForkCall call) { var thread = new Thread(GetThreadStart(call)) {IsBackground = true}; thread.Start(); return thread; }
/// <summary> /// Queues a call in the fork /// </summary> /// <param name="call">Delegate that should be executed async</param> /// <returns>Returns self</returns> public Fork Call(ForkCall call) { calls.Add(call); return this; }
private static ThreadStart GetThreadStart(ForkCall call) { ThreadStart ts = () => call(); return(ts); }
/// <summary> /// Queues a call in the fork /// </summary> /// <param name="call">Delegate that should be executed async</param> /// <returns>Returns self</returns> public Fork Call(ForkCall call) { calls.Add(call); return(this); }