MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / SubscribeAsync

Method SubscribeAsync

dotnet/src/webdriver/BiDi/EventSource.cs:33–38  ·  view source on GitHub ↗
(Action<TEventArgs> handler, CancellationToken cancellationToken = default)

Source from the content-addressed store, hash-verified

31 }
32
33 public Task<ISubscription> SubscribeAsync(Action<TEventArgs> handler, CancellationToken cancellationToken = default)
34 {
35 ArgumentNullException.ThrowIfNull(handler);
36
37 return _dispatcher.SubscribeAsync(_descriptor, e => { handler(e); return default; }, filter: null, cancellationToken: cancellationToken);
38 }
39
40 public Task<ISubscription> SubscribeAsync(Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default)
41 {

Callers

nothing calls this directly

Calls 2

ThrowIfNullMethod · 0.80
handlerFunction · 0.50

Tested by

no test coverage detected