{"modulePath":"github.com/Evolution404/simcore","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package syncx\n\nPackage syncx contains exotic synchronization primitives.\n\n## Types\n\n```go\ntype ClosableMutex struct {\n\t// contains filtered or unexported fields\n}\n```\nClosableMutex is a mutex that can also be closed. Once closed, it can never be taken again.\n\n```go\nfunc NewClosableMutex() *ClosableMutex\n```\n\n```go\nfunc (cm *ClosableMutex) Close()\n```\nClose locks the mutex, then closes it.\n\n```go\nfunc (cm *ClosableMutex) MustLock()\n```\nMustLock locks cm. If the mutex is closed, MustLock panics.\n\n```go\nfunc (cm *ClosableMutex) TryLock() bool\n```\nTryLock attempts to lock cm. If the mutex is closed, TryLock returns false.\n\n```go\nfunc (cm *ClosableMutex) Unlock()\n```\nUnlock unlocks cm.\n\n","path":"github.com/Evolution404/simcore/internal/syncx","name":"syncx","synopsis":"Package syncx contains exotic synchronization primitives.","isRedistributable":true}
