Function AstarPath.LockGraphDataForWriting
        
                LockGraphDataForWriting
        
                ()
    
            
            Aquires an exclusive lock on the graph data asynchronously.
                Public
            
        RWLock.WriteLockAsync LockGraphDataForWriting ()
Aquires an exclusive lock on the graph data asynchronously.
This is used when graphs want to modify graph data.
This is a low-level primitive, usually you do not need to use this method.
var readLock = AstarPath.active.LockGraphDataForReading(); 
var handle = new MyJob {
    // ...
}.Schedule(readLock.dependency);
readLock.UnlockAfter(handle);