Added documentation

This commit is contained in:
Thorsten Sommer 2024-05-29 11:37:59 +02:00
parent 8ade2f5a5d
commit f9ea837f68
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5

View File

@ -150,13 +150,15 @@ public sealed class MultiChannelRng<TNum> : IRandom<TNum>, IDisposable where TNu
#region Implementation of IDisposable
private void StopProducer() => this.producerTokenSource.Cancel();
/// <inheritdoc />
public void Dispose() => this.StopProducer();
#endregion
#region Implementation of IRandom<TNum>
/// <inheritdoc />
public TNum GetUniform(CancellationToken cancel = default)
{
var valueTask = this.channelFloats.Reader.ReadAsync(cancel);