Files
swift-nio/Tests
George Barnett f6487a11d8 Drain scheduled tasks on EmbeddedChannel finish() (#1319)
Motivation:

EmbeddedChannel advanced time to the distant future so that all
scheduled tasks would be run. However, if tasks were recursively
scheduled by executing the already scheduled tasks then the channel
would never finish.

Modifications:

When calling finish() on EmbeddedChannel, only run the tasks which have
been scheduled at that point in time.

Result:

Recursively scheduled tasks terminate when finish-ing the
EmbeddedChannel.
2019-12-20 15:26:18 +00:00
..