Is it safe to use the ContinueWith(...) method on a TaskCompletionSource.Task if the TaskCompletionSource.SetResult(...) has already been
ContinueWith(...)
TaskCompletionSource.Task
TaskCompletionSource.SetResult(...)
Yes this should be fine, ContinueWith checks if the previous task completed or not, if so it will immediately queue up the continuation.