Function GridGraphUpdatePromise.Apply

Apply (IGraphUpdateContext context)

Applies the update in a single atomic update.

Public
void Apply (

IGraphUpdateContext

context

)

Applies the update in a single atomic update.

It is done as a single atomic update (from the main thread's perspective) to ensure that even if one does an async scan or update, the graph will always be in a valid state. This guarantees that things like GetNearest will still work during an async scan.

Warning

Must only be called after the Prepare method has finished.