Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: janos/singleflight

Tags

v0.4.3

Toggle v0.4.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix duplicate key deletion when forget called (#14)

v0.4.2

Toggle v0.4.2's commit message
Check for error in TestDo_panic

Even the panic shoud prevent for reaching the error value
the error is checked for more visibility and linter warnings

v0.4.1

Toggle v0.4.1's commit message
Protect the shared value for concurrent access

v0.4.0

Toggle v0.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Preserve context values (#6)

Instead of passing a fresh `context.Background()` wrap context passed by
the user with a context that ignores cancellation.

This allows to drop the original cancellation while preserving context
values.

If built with Go 1.21+ the stdlib `context.WithoutCancel` is used.
Otherwise it fallbacks to an in-tree copy of the withoutCancel.

Signed-off-by: Paweł Gronowski <[email protected]>

v0.2.1

Toggle v0.2.1's commit message
Ensure no function calls after one context is cancelled

v0.3.1

Toggle v0.3.1's commit message
Update github workflow

v0.3.0

Toggle v0.3.0's commit message
Use go 1.18 in GitHub workflow

v0.2.0

Toggle v0.2.0's commit message
Pass a context to the calling function for cancellation

v0.1.0

Toggle v0.1.0's commit message
Initial commit