Skip to content

Commit e382458

Browse files
MrLotUktoso
authored andcommitted
Remove reader lock
1 parent 2b6e31e commit e382458

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/CoreMetrics/Metrics.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,6 @@ public enum MetricsSystem {
390390
return try self.lock.withWriterLock(body)
391391
}
392392

393-
/// Acquire a reader lock for the duration of the given block.
394-
///
395-
/// - Parameter body: The block to execute while holding the lock.
396-
/// - Returns: The value returned by the block.
397-
public static func withReaderLock<T>(_ body: () throws -> T) rethrows -> T {
398-
return try self.lock.withReaderLock(body)
399-
}
400-
401393
/// `bootstrap` is an one-time configuration function which globally selects the desired metrics backend
402394
/// implementation. `bootstrap` can be called at maximum once in any given program, calling it more than once will
403395
/// lead to undefined behaviour, most likely a crash.

0 commit comments

Comments
 (0)