Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pointer[T] #116

Merged
merged 2 commits into from Aug 9, 2022
Merged

Add Pointer[T] #116

merged 2 commits into from Aug 9, 2022

Commits on Aug 9, 2022

  1. go.mod: Raise go directive to 1.18

    This is necessary to use generics.
    abhinav committed Aug 9, 2022
    Copy the full SHA
    cc231f8 View commit details
    Browse the repository at this point in the history
  2. Add Pointer[T]

    Adds a Pointer[T] type that provide the same functionality as
    Go 1.19's `sync/atomic.Pointer[T]` in both, Go 1.18 and 1.19.
    
    In Go 1.19, this uses the standard library's implementation,
    and in 1.18 our own custom implementation based on UnsafePointer.
    
    Refs GO-1572
    Resolves #115
    abhinav committed Aug 9, 2022
    Copy the full SHA
    ab44100 View commit details
    Browse the repository at this point in the history