close

fun close(route: String): Result<Unit>

Closes the window for given route and removes it from the routes list. When there was an error, error opened windows do not change.

Return

Result.success if window was closed successfully or Result.failure with an error:

IllegalArgumentException if window for the route was not opened.

When there was an error, error opened windows do not change.

Parameters

route

for which currently opened window will be closed

See also