mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
25ab209380
- ConcurrentMethodRunnerQueue we now directly queue tasks on TaskScheduler.Default - MethodRunnerQueue now uses LimitedConcurrencyLevelTaskScheduler (example from Microsoft) to limit execution to one concurrent task - MethodRunnerQueue tasks are now run on the ThreadPool directly instead of our own custom thread, should have some threading implications for user - IMethodRunnerQueue now implements IDisposable Resolves #2873
16 lines
424 B
C#
16 lines
424 B
C#
// Copyright © 2019 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp.Internals
|
|
{
|
|
public interface IMethodRunnerQueue : IDisposable
|
|
{
|
|
event EventHandler<MethodInvocationCompleteArgs> MethodInvocationComplete;
|
|
|
|
void Enqueue(MethodInvocation methodInvocation);
|
|
}
|
|
}
|