|
|
|
|
|
by tracker1
4127 days ago
|
|
I've been thinking that something combined with the use of async functions (es7) could be used for Shared* locking... sharedObject.lock(^() => {
/* use object, which is locked until async promise resolves/rejects */
});
where `^` is a short key for an async lambda function... `async` keyword could be used too... just throwing the `^` out there.This could lock the object, allowing for an async function to execute... when the async function promise resolves, the lock is released... it would have to be limited to async functions though. but that would likely hit the JS engines around the same time as any shared objects anyway. |
|
It also makes isomorphic interfaces (async node & browser) slightly harder.