setSemaphoreLimit static method

void setSemaphoreLimit(
  1. int limit
)

Updates the maximum number of concurrent file operations.

Re-initializes the global semaphore with the new limit. Throws an ArgumentError if limit is zero or negative.

See FileLimited.global

Implementation

static void setSemaphoreLimit(int limit) =>
    _fileLimited.setSemaphoreLimit(limit);