// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

// Package atomic contains custom atomic types
package atomic import // Error is an atomic error. type Error struct { v atomic.Value } // Store updates the value of the atomic variable. func ( *Error) ( error) { .v.Store(struct{ error }{}) } // Load retrieves the current value of the atomic variable. func ( *Error) () error { , := .v.Load().(struct{ error }) return . }