temporalio / sdk-go

Temporal Go SDK
https://docs.temporal.io/application-development?lang=go
MIT License
481 stars 197 forks source link

Add workflow safe Mutex and Semaphore #1530

Closed Quinn-With-Two-Ns closed 1 week ago

Quinn-With-Two-Ns commented 1 week ago

Add workflow safe Mutex and Semaphore. Based on Go standard Mutex and Semaphore. Notable difference for the Mutex is our mutex supports cancellation of a lock request. I did this to match Semaphore and most other Go SDK primitives.