clone

abstract fun clone(context: ConcurrentExecutionContext = this.context): State

Returns a copy of this state, replacing context with the given one (defaulting to the current context).