internal void PendThen(object result) { foreach (var thenCallback in ThenCallbacks) { var callback = thenCallback; EventLoop.Pend(() => callback(result)); } }