EventReceiverBase<T> Class
Namespace: Stride.Engine.Events
Assembly: Stride.Engine.dll
Base type for EventReceiver.
public class EventReceiverBase<T> : EventReceiverBase, IDisposable
Type Parameters
Name |
Description |
T |
The type of data the EventKey will send
|
|
Improve this Doc
View Source
Properties
Count
Returns the count of currently buffered events
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Key
public EventKeyBase<T> Key { get; }
Property Value
|
Improve this Doc
View Source
Methods
Dispose()
Finalize()
protected void Finalize()
GetAwaiter()
public EventReceiverAwaiter<T> GetAwaiter()
Returns
InternalReceiveAsync()
protected async Task<T> InternalReceiveAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
InternalTryReceive(out T)
protected bool InternalTryReceive(out T data)
Parameters
Type |
Name |
Description |
T |
data |
|
Returns
Type |
Description |
System.Boolean |
|
InternalTryReceiveAll(ICollection<T>)
protected int InternalTryReceiveAll(ICollection<T> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<T> |
collection |
|
Returns
Type |
Description |
System.Int32 |
|
Reset()
Clears all currently buffered events.
Extension Methods