A library for executing operations only once
- initialize the library:
Boot.init(context)
or
initBoot(context)
- register an operation:
executeOnce("operation_mark") {
//do something only once
}
executeOnce("operation_mark") {
//do something only once
}.alreadyExecuted {
//do something else if the main operation is already executed
}
Boot.isExecuted("operation_mark")
Boot.getAllOperations()