Resolve "Add possibility to get integers" #17

Merged
thorsten merged 8 commits from 9-add-possibility-to-get-integers into main 2024-05-29 09:40:29 +00:00
Showing only changes of commit f9ea837f68 - Show all commits

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);