MoleculeLocker

class MoleculeLocker(lockers: List<MoleculeLocker.Locker>)

When the GUI is listening in on the compiler progress, we end up trying to render the molecule while it's being modified by the compiler.

We can solve that problem by making the compiler lock molecules before modifying them.

Constructors

Link copied to clipboard
fun MoleculeLocker(lockers: List<MoleculeLocker.Locker> = emptyList())

Types

Link copied to clipboard
class Locker(mol: Molecule, sync: Any)

Functions

Link copied to clipboard
fun <R> lock(mol: Molecule, block: () -> R): R