jonboulle / clockwork

a fake clock for golang
Apache License 2.0
631 stars 57 forks source link

feat: Add context helpers to package. #33

Closed connyay closed 2 years ago

connyay commented 2 years ago

This change adds new methods .AddTo() and .From() to assist with threading clocks through code paths via context. Enables simple fake clock usage in test where needed.

Closes #32

connyay commented 2 years ago

@sagikazarmark thanks for the feedback - updated with your suggestions. PTAL