This commit is contained in:
2024-04-18 12:02:55 -04:00
parent 265efd1db0
commit e01589aab8

View File

@@ -9,9 +9,9 @@ import io.obswebsocket.community.client.model.SceneItem.Transform.TransformBuild
import org.slf4j.LoggerFactory
/**
* Use an [obs] to run [Op]s.
* Use an [obs] to run an operation.
*
* Call [run] to run an OBS operation.
* Call [invoke] to run an OBS operation.
*/
class OpRunner(private val obs:Obs): (String)->Unit {
@@ -21,7 +21,9 @@ class OpRunner(private val obs:Obs): (String)->Unit {
private val controller = obs.controller
/**
* Run the specified [Op].
* Run the specified [op].
*
* @param op Operation to run.
*/
override fun invoke(op:String) {
obs.submit { controller ->