public static Action <T> Wrap <T>(this IPostWorkToAnotherThread thread, Action <T> action) { return(item => thread.Post(() => action(item))); }
public static Action Wrap(this IPostWorkToAnotherThread thread, Action action) { return(() => thread.Post(action)); }