Skip to content

Use ticker instead of time.After#5

Merged
Songmu merged 1 commit intonatureglobal:mainfrom
wreulicke:main
Nov 25, 2020
Merged

Use ticker instead of time.After#5
Songmu merged 1 commit intonatureglobal:mainfrom
wreulicke:main

Conversation

@wreulicke
Copy link
Copy Markdown
Contributor

@wreulicke wreulicke commented Nov 25, 2020

Use ticker instead of time.After to reduce allocations.

I have checked the behaviors of tickers on go playground.
I share it.
https://play.golang.org/p/DnxkvcBBqh6

@Songmu Songmu merged commit 8ff4160 into natureglobal:main Nov 25, 2020
Songmu added a commit that referenced this pull request Nov 25, 2020
## [v0.0.3](v0.0.2...v0.0.3) (2020-11-26)

* Use ticker instead of time.After [#5](#5) ([wreulicke](https://github.com/wreulicke))
* enhance testing [#4](#4) ([Songmu](https://github.com/Songmu))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants