namespace XGame.Framework.Asyncs { public class AwaiterResultable : Awaiter, IAsyncResultable { TResult _Result; public TResult Result => _Result; public override void Completed(IAsync result) { if (result is IAsyncResultable) _Result = (result as IAsyncResultable).Result; base.Completed(result); } } }