diff --git a/pkgs/sdk/client/src/PlatformSpecific/AsyncScheduler.netstandard.cs b/pkgs/sdk/client/src/PlatformSpecific/AsyncScheduler.netstandard.cs index ddaf028e..98aa97e7 100644 --- a/pkgs/sdk/client/src/PlatformSpecific/AsyncScheduler.netstandard.cs +++ b/pkgs/sdk/client/src/PlatformSpecific/AsyncScheduler.netstandard.cs @@ -5,9 +5,13 @@ namespace LaunchDarkly.Sdk.Client.PlatformSpecific { internal static partial class AsyncScheduler { + private static volatile Task _lastScheduledTask = Task.CompletedTask; + private static void PlatformScheduleAction(Action a) { - Task.Run(a); + // Chain the new action to run after the previous one completes + // This ensures actions run in order while maintaining fire-and-forget behavior + _lastScheduledTask = _lastScheduledTask.ContinueWith(_ => a()); } } }