MCPcopy
hub / github.com/caddyserver/certmagic / TryLock

Method TryLock

storage.go:159–159  ·  view source on GitHub ↗

TryLock attempts to acquire the lock for name, and returns a boolean that reports whether the lock was successfully aquired or not along with any errors that may have occurred. Implementations should honor context cancellation.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

157 //
158 // Implementations should honor context cancellation.
159 TryLock(ctx context.Context, name string) (bool, error)
160
161 // Unlock releases named lock. This method must ONLY be called
162 // after a successful call to TryLock, and only after the critical

Callers 1

tryAcquireLockFunction · 0.65

Implementers 1

FileStoragefilestorage.go

Calls

no outgoing calls

Tested by

no test coverage detected