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()