commit | 4f7da601ca02aa546c5ef911a0b6595fdadf4e18 | [log] [tgz] |
---|---|---|
author | Michael Darakananda <pongad@google.com> | Tue Oct 18 11:53:01 2016 +1100 |
committer | GitHub <noreply@github.com> | Tue Oct 18 11:53:01 2016 +1100 |
tree | b4f5ea88d962d1cf8dad8250a5351f315632f6bb | |
parent | ed6ab759ab548d1e6e070f53f9d1105d2d8128b0 [diff] |
Expose Sleep and explicitly stop timer (#37) This commit replaces timeSleeper with Sleep. Previously, if the context finishes early, timeSleeper returns the context's error and ignore the timer. This is correct, but the GC will only be able to collect the timer after the timer expires. This commit explicitly stop the timer, so that the GC can claim it immediately.