RequestGate class
Caps how many tasks run at once; the rest wait their turn in FIFO order.
Every native request blocks an isolate for its whole duration, so a burst of N calls would otherwise spawn N isolates and N blocked OS threads.
Constructors
- RequestGate(int max)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
T> (Future< T> task()) → Future<T> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited