Add support for thread safety on async actions only#968
Conversation
fbd892b to
28ab2f1
Compare
|
It's backwards compatible with |
28ab2f1 to
6f08243
Compare
|
BTW the async-only thread-safety is activated using It might be nice to add more user-friendly identifiers instead of |
|
Thanks @srajko!
Definitely agree 👍 |
Let's make those strings that live on |
6f08243 to
1a8d3b2
Compare
1a8d3b2 to
045ec0e
Compare
👍 added. |
|
@srajko thanks! |
This changed in nodegit/nodegit#968.
Adds a middle-ground thread-safety level, which locks async functions but skips locking of sync functions, to avoid the risk of blocking the main thread.
/cc @johnhaley81 @joshaber