Open leonklingele opened 8 months ago
this concept was copied from fasthttp and is supposed to bring performance what is the alternative without the loss of performance ?
Just provide another function which stops the timer once started. This func should be called by whoever has started the timer after e.g. the fiber server was stopped.
this concept was copied from fasthttp and is supposed to bring performance what is the alternative without the loss of performance ?
This isnt proposing to get rid of the timer, just adding the ability to shut it down manually.
Ok, sorry misunderstanding Then sure we could do it
Feature Description
There should be a way to stop the timestamp updater again so we don't leak a goroutine.
When using Uber's
goleak
you have to manually ignore these after shutting down the fiber server:Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist: