public void WaitForJob_WaitForTheTimeout()
        {
            //Arrange
            Stopwatch sw           = new Stopwatch();
            var       subscription = new RedisSubscription(_storage, RedisUtils.CreateSubscriber());
            var       timeout      = TimeSpan.FromMilliseconds(100);

            sw.Start();

            //Act
            subscription.WaitForJob(timeout, _cts.Token);

            //Assert
            sw.Stop();
            Assert.InRange(sw.ElapsedMilliseconds, 100, 120);
        }
 public void WaitForDelayJob(TimeSpan timeSpan, CancellationToken cancellationToken = default(CancellationToken))
 {
     _delayJobChannelSubscription.WaitForJob(timeSpan, cancellationToken);
 }