readAsBytesLimited method

Future<Uint8List> readAsBytesLimited()

Similar to File.readAsBytes, but limits concurrency to a maximum of _semaphoreLimit simultaneous reads.

This helps prevent Too many open files errors and reduces disk I/O contention or throttling on shared or virtualized storage systems.

See FileLimited.global

Implementation

Future<Uint8List> readAsBytesLimited() => _fileLimited.readAsBytes(this);