@@ -138,7 +138,7 @@ public Task<T> ExecuteDevToolsMethodAsync<T>(string method, IDictionary<string,
138138 throw new ObjectDisposedException ( nameof ( IBrowser ) ) ;
139139 }
140140
141- var taskCompletionSource = new TaskCompletionSource < T > ( ) ;
141+ var taskCompletionSource = new TaskCompletionSource < T > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
142142
143143 var methodResultContext = new DevToolsMethodResponseContext (
144144 type : typeof ( T ) ,
@@ -332,7 +332,7 @@ void IDevToolsMessageObserver.OnDevToolsMethodResult(IBrowser browser, int messa
332332 /// <summary>
333333 /// Deserialize the JSON stream into a .Net object.
334334 /// For .Net Core/.Net 5.0 uses System.Text.Json
335- /// for .Net 4.5 .2 uses System.Runtime.Serialization.Json
335+ /// for .Net 4.6 .2 uses System.Runtime.Serialization.Json
336336 /// </summary>
337337 /// <typeparam name="T">Object type</typeparam>
338338 /// <param name="eventName">event Name</param>
@@ -359,7 +359,7 @@ private static T DeserializeJsonEvent<T>(string eventName, Stream stream) where
359359 /// <summary>
360360 /// Deserialize the JSON stream into a .Net object.
361361 /// For .Net Core/.Net 5.0 uses System.Text.Json
362- /// for .Net 4.5 .2 uses System.Runtime.Serialization.Json
362+ /// for .Net 4.6 .2 uses System.Runtime.Serialization.Json
363363 /// </summary>
364364 /// <typeparam name="T">Object type</typeparam>
365365 /// <param name="stream">JSON stream</param>
@@ -372,7 +372,7 @@ private static T DeserializeJson<T>(Stream stream)
372372 /// <summary>
373373 /// Deserialize the JSON stream into a .Net object.
374374 /// For .Net Core/.Net 5.0 uses System.Text.Json
375- /// for .Net 4.5 .2 uses System.Runtime.Serialization.Json
375+ /// for .Net 4.6 .2 uses System.Runtime.Serialization.Json
376376 /// </summary>
377377 /// <param name="type">Object type</param>
378378 /// <param name="stream">JSON stream</param>
0 commit comments