Draft of a very simple task class inspired by the .NET Task/TaskCompletionSource