minio / dsync

A distributed sync package.
Apache License 2.0
400 stars 41 forks source link

Is there any support for Async / callback instead of blocking to acquire lock ? #56

Closed flouthoc closed 5 years ago

harshavardhana commented 5 years ago

Locking is blocking. This package is present to mimic sync.Mutex behavior - no plans to implement async style.

flouthoc commented 5 years ago

@harshavardhana makes sense but i have a weird use-case of moving to next state if lock is not acquired and try again in the same evloop but no worries i'll find some work around.