parallelism property

int parallelism
final

The number of isolates to use for parallel processing.

This has no effect on the web platform, where mining will always be single-threaded.

A value of 1 means no parallelism (runs on the main isolate). A value greater than 1 will attempt to distribute the mining tasks across multiple isolates on native platforms.

Implementation

final int parallelism;