fix `call-with-file-lock/timeout' checking
This commit is contained in:
parent
1c04cf1b02
commit
c81222e4c8
|
@ -185,9 +185,9 @@
|
|||
(raise-type-error 'call-with-file-lock/timeout "'shared or 'exclusive" kind))
|
||||
(unless (and (procedure? thunk) (= (procedure-arity thunk) 0))
|
||||
(raise-type-error 'call-with-file-lock/timeout "procedure (arity 0)" thunk))
|
||||
(unless (and (procedure? thunk) (= (procedure-arity thunk) 0))
|
||||
(unless (and (procedure? thunk) (= (procedure-arity failure-thunk) 0))
|
||||
(raise-type-error 'call-with-file-lock/timeout "procedure (arity 0)" failure-thunk))
|
||||
(unless (path-string? lock-file)
|
||||
(unless (or (not lock-file) (path-string? lock-file))
|
||||
(raise-type-error 'call-with-file-lock/timeout "path-string? or #f" lock-file))
|
||||
(unless (and (real? delay) (not (negative? delay)))
|
||||
(raise-type-error 'call-with-file-lock/timeout "non-negative real" delay))
|
||||
|
|
Loading…
Reference in New Issue
Block a user