Confirm confirms that the caller can claim all of the locks specified by the given conditions, and that holding the union of all of those locks gives exclusive access to all of the named resources. Up to two resources can be named. Empty names are ignored. Exactly one of release and err will be non
(now time.Time, name0, name1 string, conditions ...Condition)
| 52 | // present more than one set of locks). If it returns any other non-nil |
| 53 | // error, the Handler will write a "500 Internal Server Error" HTTP status. |
| 54 | Confirm(now time.Time, name0, name1 string, conditions ...Condition) (release func(), err error) |
| 55 | |
| 56 | // Create creates a lock with the given depth, duration, owner and root |
| 57 | // (name). The depth will either be negative (meaning infinite) or zero. |
nothing calls this directly
no outgoing calls
no test coverage detected