/// <summary> /// Blocks the current thread to run a single queued callback. /// If no callback is queued, the method will block for the given timeout. /// </summary> /// <param name="timeout">The length of time to block.</param> public void RunWaitCallbacks(TimeSpan timeout) { var call = client.WaitForCallback(true, timeout); if (call == null) { return; } Handle(call); }
/// <summary> /// Blocks the current thread to run a single queued callback. /// If no callback is queued, the method will block for the given timeout. /// </summary> /// <param name="timeout">The length of time to block.</param> public void RunWaitCallbacks(TimeSpan timeout) { #if STATIC_CALLBACKS var call = SteamClient.WaitForCallback(true, timeout); #else var call = client.WaitForCallback(true, timeout); #endif if (call == null) { return; } Handle(call); }
/// <summary> /// Blocks the current thread to run a single queued callback. /// If no callback is queued, the method will block for the given timeout. /// </summary> /// <param name="timeout">The length of time to block.</param> public void RunWaitCallbacks(TimeSpan timeout) { #if STATIC_CALLBACKS #pragma warning disable 0618 // we're knowingly using an obsolete api var call = SteamClient.WaitForCallback(true, timeout); #pragma warning restore 0618 #else var call = client.WaitForCallback(true, timeout); #endif if (call == null) { return; } Handle(call); }