cancel

fun cancel()

Cancel any pending prepare or connect action and return the state to an appropriate starting point.