Skip to content

Commit d740425

Browse files
committed
fix: allow access to Reference definitions
1 parent 52fbbd8 commit d740425

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/ComposableRequest/Extensions/Reference.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@ public final class Atomic<Value> {
1616
private var _value: Value
1717

1818
/// The underlying value.
19-
var value: Value {
19+
public var value: Value {
2020
queue.sync { self._value }
2121
}
2222

2323
/// Init.
2424
///
2525
/// - parameter value: A valid `Value`.
26-
init(_ value: Value) {
26+
public init(_ value: Value) {
2727
self._value = value
2828
}
2929

3030
/// Sync the underlying value.
3131
///
3232
/// - parameter transform: A valid transformation.
33-
func sync<T>(_ transform: (inout Value) -> T) -> T {
33+
public func sync<T>(_ transform: (inout Value) -> T) -> T {
3434
queue.sync { transform(&self._value) }
3535
}
3636

3737
/// Mutate the undelrying value.
3838
///
3939
/// - parameter transform: A valid transformation.
40-
func mutate(_ transform: (inout Value) -> Void) {
40+
public func mutate(_ transform: (inout Value) -> Void) {
4141
sync(transform)
4242
}
4343
}
@@ -46,12 +46,12 @@ public final class Atomic<Value> {
4646
/// for some value.
4747
public final class Reference<Value> {
4848
/// The underlying value.
49-
var value: Value
49+
public var value: Value
5050

5151
/// Init.
5252
///
5353
/// - parameter value: A valid `Value`.
54-
init(_ value: Value) {
54+
public init(_ value: Value) {
5555
self.value = value
5656
}
5757
}

0 commit comments

Comments
 (0)