fun retrieveAny()

in robot-server-core/src/main/kotlin/com/intellij/remoterobot/services/IdeRobot.kt [216:229]


    fun retrieveAny(actionContainer: ObjectContainer): Result<Serializable> {
        return getResult(RobotContext(robot)) { ctx ->
            if (actionContainer.runInEdt) {
                runInEdtWithWIL {
                    val action =
                        lambdaLoader.getFunction(actionContainer) as RobotContext.() -> Serializable
                    ctx.action()
                }
            } else {
                val action = lambdaLoader.getFunction(actionContainer) as RobotContext.() -> Serializable
                return@getResult ctx.action()
            }
        }
    }