GenerationConfigKt
public final class GenerationConfigKt
Summary
Public methods |
|
|---|---|
static final @NonNull GenerationConfig |
generationConfig(Helper method to construct a |
Public methods
generationConfig
public static final @NonNull GenerationConfig generationConfig(
@ExtensionFunctionType @NonNull Function1<@NonNull GenerationConfig.Builder, Unit> init
)
Helper method to construct a GenerationConfig in a DSL-like manner.
Example usage:
generationConfig() {
workerExecutor = workerThread // Set the [ExecutorService] on which background tasks should be run. If no value is specified, a background thread pool will be used.
}