with Write Reactors To Modify
open fun <T> withWriteReactorsToModify(self: AvailObject, toModify: Boolean, body: (MutableMap<A_Atom, VariableDescriptor.VariableAccessReactor>?) -> T): T
Extract the given variable's write-reactors map, and pass it into the body function. If toModify is true, initialize the field if needed. If toModify is false and the field has not yet been set, use null instead. Ensure that the map can not be read or written by other threads during the body.
Parameters
self
The A_Variable to examine and/or update.
to Modify
Whether to initialize the field if it has not yet been initialized.