Table of Contents
API reference

Method CollectEventArgsAsync

Namespace
DisCatSharp.Interactivity
Assembly
DisCatSharp.Interactivity.dll

CollectEventArgsAsync<T>(Func<T, bool>, TimeSpan?)

Collects the event arguments.

public Task<ReadOnlyCollection<T>> CollectEventArgsAsync<T>(Func<T, bool> predicate, TimeSpan? timeoutOverride = null) where T : AsyncEventArgs

Parameters

predicate Func<T, bool>

The predicate.

timeoutOverride TimeSpan?

Override timeout period.

Returns

Task<ReadOnlyCollection<T>>

Type Parameters

T