@@ -23,7 +23,7 @@ class BazelWorkerDriver {
23
23
/// The maximum number of idle workers at any given time.
24
24
final int _maxIdleWorkers;
25
25
26
- /// The maximum number of times to retry a [WorkAttempt ] if there is an error.
26
+ /// The maximum number of times to retry a [_WorkAttempt ] if there is an error.
27
27
final int _maxRetries;
28
28
29
29
/// The maximum number of concurrent workers to run at any given time.
@@ -57,7 +57,7 @@ class BazelWorkerDriver {
57
57
/// to determine when actual work is being done versus just waiting for an
58
58
/// available worker.
59
59
Future <WorkResponse > doWork (WorkRequest request,
60
- {Function (Future <WorkResponse ?>)? trackWork}) {
60
+ {void Function (Future <WorkResponse ?>)? trackWork}) {
61
61
var attempt = _WorkAttempt (request, trackWork: trackWork);
62
62
_workQueue.add (attempt);
63
63
_runWorkQueue ();
@@ -130,7 +130,7 @@ class BazelWorkerDriver {
130
130
_runWorkQueue ();
131
131
}
132
132
133
- /// Sends [request ] to [worker] .
133
+ /// Sends [attempt ] to [worker] .
134
134
///
135
135
/// Once the worker responds then it will be added back to the pool of idle
136
136
/// workers.
@@ -227,7 +227,7 @@ class BazelWorkerDriver {
227
227
class _WorkAttempt {
228
228
final WorkRequest request;
229
229
final responseCompleter = Completer <WorkResponse >();
230
- final Function (Future <WorkResponse ?>)? trackWork;
230
+ final void Function (Future <WorkResponse ?>)? trackWork;
231
231
232
232
Future <WorkResponse > get response => responseCompleter.future;
233
233
0 commit comments