Run the Offscreen continuation on the Threadpool
This commit is contained in:
parent
0d0043a956
commit
7f371af1a0
@ -7,6 +7,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using CefSharp.OffScreen;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CefSharp.MinimalExample.OffScreen
|
||||
{
|
||||
@ -90,7 +91,7 @@ namespace CefSharp.MinimalExample.OffScreen
|
||||
Process.Start(screenshotPath);
|
||||
|
||||
Console.WriteLine("Image viewer launched. Press any key to exit.");
|
||||
});
|
||||
}, TaskScheduler.Default);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user