https://github.com/borkdude/graal.locking
A workaround for CLJ-1472 as a library
https://github.com/borkdude/graal.locking
Last synced: 3 months ago
JSON representation
A workaround for CLJ-1472 as a library
- Host: GitHub
- URL: https://github.com/borkdude/graal.locking
- Owner: borkdude
- License: epl-1.0
- Created: 2020-01-04T13:26:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T14:33:48.000Z (about 6 years ago)
- Last Synced: 2024-05-01T20:29:43.131Z (over 1 year ago)
- Language: Clojure
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graal.locking
[](https://clojars.org/borkdude/graal.locking)
A workaround for
[CLJ-1472](https://ask.clojure.org/index.php/740/locking-macro-fails-bytecode-verification-native-runtime)
as a library.
Credits should go to
[@taylorwood](https://github.com/taylorwood/clojurl/tree/locking-fix) for coming
up with the fix.
Mistakes are mine.
## Usage
``` clojure
(require '[borkdude.graal.locking :as locking])
(locking/locking (Object.) 1) ;;=> 1
```
## License
Copyright © 2019 Michiel Borkent
Distributed under the EPL License. See LICENSE.