success

fun success(predicate: (T) -> Boolean): PollingConfigBuilder<T>

Sets the terminal success predicate. When it returns true for a Success(value), polling stops with PollingOutcome.Success.