From 00379ac7b72234b82f4d009686c938c9801dac05 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 19 Feb 2020 12:29:21 +0000 Subject: [PATCH] CallbackResult - stall for now --- Facepunch.Steamworks/Callbacks/CallbackResult.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Callbacks/CallbackResult.cs b/Facepunch.Steamworks/Callbacks/CallbackResult.cs index 5cfcda3..6a68adc 100644 --- a/Facepunch.Steamworks/Callbacks/CallbackResult.cs +++ b/Facepunch.Steamworks/Callbacks/CallbackResult.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Threading; using System.Threading.Tasks; namespace Steamworks @@ -18,7 +19,15 @@ namespace Steamworks public void OnCompleted( Action continuation ) { - throw new NotImplementedException(); + var ts = TaskScheduler.Current; + var sc = SynchronizationContext.Current; + + while ( !IsCompleted ) + { + // Nothing + } + + continuation(); } public T? GetResult()