Example #1
0
 static void WithSync(Action f)
 {
     SyncContext.Current.Post(() => {
         f();
         SyncContext.ExitAllFrames();
     });
     SyncContext.Current.Run();
 }