nats.java icon indicating copy to clipboard operation
nats.java copied to clipboard

ReentrantLock instead of synchronized

Open scottf opened this issue 4 months ago • 0 comments

  • Use ReentrantLock in place of synchronized since it's better for virtual threads and equally if not more performant.
  • Ensure consumer context implementation is thread safe and switch to reentrant lock instead of synchronized.

scottf avatar Mar 04 '24 17:03 scottf