-
Notifications
You must be signed in to change notification settings - Fork 2
/
ExecutorCompletionService.xml
589 lines (587 loc) · 40.3 KB
/
ExecutorCompletionService.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
<Type Name="ExecutorCompletionService" FullName="Java.Util.Concurrent.ExecutorCompletionService">
<TypeSignature Language="C#" Value="public class ExecutorCompletionService : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Util.Concurrent.ICompletionService" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ExecutorCompletionService extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.Util.Concurrent.ICompletionService, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.Util.Concurrent.ExecutorCompletionService" />
<TypeSignature Language="F#" Value="type ExecutorCompletionService = class
 inherit Object
 interface ICompletionService
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Util.Concurrent.ICompletionService</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/util/concurrent/ExecutorCompletionService", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/util/concurrent/ExecutorCompletionService", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "V" })>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>A <c>CompletionService</c> that uses a supplied <c>Executor</c>
to execute tasks.</summary>
<remarks>
<para>A <c>CompletionService</c> that uses a supplied <c>Executor</c>
to execute tasks. This class arranges that submitted tasks are,
upon completion, placed on a queue accessible using <c>take</c>.
The class is lightweight enough to be suitable for transient use
when processing groups of tasks.</para>
<para><b>Usage Examples.</b>
Suppose you have a set of solvers for a certain problem, each
returning a value of some type <c>Result</c>, and would like to
run them concurrently, processing the results of each of them that
return a non-null value, in some method <c>use(Result r)</c>. You
could write this as:</para>
<code lang="text/java">{@code
void solve(Executor e,
Collection<Callable<Result>> solvers)
throws InterruptedException, ExecutionException {
CompletionService<Result> cs
= new ExecutorCompletionService<>(e);
solvers.forEach(cs::submit);
for (int i = solvers.size(); i > 0; i--) {
Result r = cs.take().get();
if (r != null)
use(r);
}
}}</code>
<para>Suppose instead that you would like to use the first non-null result
of the set of tasks, ignoring any that encounter exceptions,
and cancelling all other tasks when the first one is ready:</para>
<code lang="text/java">{@code
void solve(Executor e,
Collection<Callable<Result>> solvers)
throws InterruptedException {
CompletionService<Result> cs
= new ExecutorCompletionService<>(e);
int n = solvers.size();
List<Future<Result>> futures = new ArrayList<>(n);
Result result = null;
try {
solvers.forEach(solver -> futures.add(cs.submit(solver)));
for (int i = n; i > 0; i--) {
try {
Result r = cs.take().get();
if (r != null) {
result = r;
break;
}
} catch (ExecutionException ignore) {}
}
} finally {
futures.forEach(future -> future.cancel(true));
}
if (result != null)
use(result);
}}</code>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/ExecutorCompletionService" title="Reference documentation">Java documentation for <code>java.util.concurrent.ExecutorCompletionService</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ExecutorCompletionService (Java.Util.Concurrent.IExecutor? executor);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Util.Concurrent.IExecutor executor) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.#ctor(Java.Util.Concurrent.IExecutor)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.ExecutorCompletionService : Java.Util.Concurrent.IExecutor -> Java.Util.Concurrent.ExecutorCompletionService" Usage="new Java.Util.Concurrent.ExecutorCompletionService executor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
</Parameters>
<Docs>
<param name="executor">the executor to use</param>
<summary>Creates an ExecutorCompletionService using the supplied
executor for base task execution and a
<c>LinkedBlockingQueue</c> as a completion queue.</summary>
<remarks>
<para>Creates an ExecutorCompletionService using the supplied
executor for base task execution and a
<c>LinkedBlockingQueue</c> as a completion queue.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/ExecutorCompletionService#ExecutorCompletionService(java.util.concurrent.Executor)" title="Reference documentation">Java documentation for <code>java.util.concurrent.ExecutorCompletionService.ExecutorCompletionService(java.util.concurrent.Executor)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.NullPointerException">if executor is <c>null</c></exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ExecutorCompletionService (Java.Util.Concurrent.IExecutor? executor, Java.Util.Concurrent.IBlockingQueue? completionQueue);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Util.Concurrent.IExecutor executor, class Java.Util.Concurrent.IBlockingQueue completionQueue) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.#ctor(Java.Util.Concurrent.IExecutor,Java.Util.Concurrent.IBlockingQueue)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.ExecutorCompletionService : Java.Util.Concurrent.IExecutor * Java.Util.Concurrent.IBlockingQueue -> Java.Util.Concurrent.ExecutorCompletionService" Usage="new Java.Util.Concurrent.ExecutorCompletionService (executor, completionQueue)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;Ljava/util/concurrent/BlockingQueue;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Executor;Ljava/util/concurrent/BlockingQueue;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
<Parameter Name="completionQueue" Type="Java.Util.Concurrent.IBlockingQueue" />
</Parameters>
<Docs>
<param name="executor">the executor to use</param>
<param name="completionQueue">the queue to use as the completion queue
normally one dedicated for use by this service. This
queue is treated as unbounded -- failed attempted
<c>Queue.add</c> operations for completed tasks cause
them not to be retrievable.</param>
<summary>Creates an ExecutorCompletionService using the supplied
executor for base task execution and the supplied queue as its
completion queue.</summary>
<remarks>
<para>Creates an ExecutorCompletionService using the supplied
executor for base task execution and the supplied queue as its
completion queue.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/ExecutorCompletionService#ExecutorCompletionService(java.util.concurrent.Executor,%20java.util.concurrent.BlockingQueue%3Cjava.util.concurrent.Future%3CV%3E%3E)" title="Reference documentation">Java documentation for <code>java.util.concurrent.ExecutorCompletionService.ExecutorCompletionService(java.util.concurrent.Executor, java.util.concurrent.BlockingQueue<java.util.concurrent.Future<V>>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ExecutorCompletionService (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.ExecutorCompletionService : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ExecutorCompletionService" Usage="new Java.Util.Concurrent.ExecutorCompletionService (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Java.Util.Concurrent.ExecutorCompletionService.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Java.Util.Concurrent.ExecutorCompletionService.JniPeerMembers" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Java.Interop.IJavaPeerable.JniPeerMembers</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Poll">
<MemberSignature Language="C#" Value="public virtual Java.Util.Concurrent.IFuture? Poll ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Concurrent.IFuture Poll() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.Poll" />
<MemberSignature Language="F#" Value="abstract member Poll : unit -> Java.Util.Concurrent.IFuture
override this.Poll : unit -> Java.Util.Concurrent.IFuture" Usage="executorCompletionService.Poll " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Util.Concurrent.ICompletionService.Poll</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("poll", "()Ljava/util/concurrent/Future;", "GetPollHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("poll", "()Ljava/util/concurrent/Future;", "GetPollHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.IFuture</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary tool="true">Retrieves and removes the Future representing the next
completed task, or <c>null</c> if none are present.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Poll">
<MemberSignature Language="C#" Value="public virtual Java.Util.Concurrent.IFuture? Poll (long timeout, Java.Util.Concurrent.TimeUnit? unit);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Concurrent.IFuture Poll(int64 timeout, class Java.Util.Concurrent.TimeUnit unit) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.Poll(System.Int64,Java.Util.Concurrent.TimeUnit)" />
<MemberSignature Language="F#" Value="abstract member Poll : int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IFuture
override this.Poll : int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IFuture" Usage="executorCompletionService.Poll (timeout, unit)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Util.Concurrent.ICompletionService.Poll(System.Int64,Java.Util.Concurrent.TimeUnit)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.IFuture</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.Int64" />
<Parameter Name="unit" Type="Java.Util.Concurrent.TimeUnit" />
</Parameters>
<Docs>
<param name="timeout">how long to wait before giving up, in units of
<c>unit</c></param>
<param name="unit">a <c>TimeUnit</c> determining how to interpret the
<c>timeout</c> parameter</param>
<summary>Retrieves and removes the Future representing the next
completed task, waiting if necessary up to the specified wait
time if none are yet present.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.InterruptedException" />
</Docs>
</Member>
<Member MemberName="PollAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture?> PollAsync ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Java.Util.Concurrent.IFuture> PollAsync() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.PollAsync" />
<MemberSignature Language="F#" Value="member this.PollAsync : unit -> System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture>" Usage="executorCompletionService.PollAsync " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture></ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="PollAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture?> PollAsync (long timeout, Java.Util.Concurrent.TimeUnit? unit);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Java.Util.Concurrent.IFuture> PollAsync(int64 timeout, class Java.Util.Concurrent.TimeUnit unit) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.PollAsync(System.Int64,Java.Util.Concurrent.TimeUnit)" />
<MemberSignature Language="F#" Value="member this.PollAsync : int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture>" Usage="executorCompletionService.PollAsync (timeout, unit)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="timeout" Type="System.Int64" />
<Parameter Name="unit" Type="Java.Util.Concurrent.TimeUnit" />
</Parameters>
<Docs>
<param name="timeout">To be added.</param>
<param name="unit">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Submit">
<MemberSignature Language="C#" Value="public virtual Java.Util.Concurrent.IFuture? Submit (Java.Util.Concurrent.ICallable? task);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Concurrent.IFuture Submit(class Java.Util.Concurrent.ICallable task) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.Submit(Java.Util.Concurrent.ICallable)" />
<MemberSignature Language="F#" Value="abstract member Submit : Java.Util.Concurrent.ICallable -> Java.Util.Concurrent.IFuture
override this.Submit : Java.Util.Concurrent.ICallable -> Java.Util.Concurrent.IFuture" Usage="executorCompletionService.Submit task" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Util.Concurrent.ICompletionService.Submit(Java.Util.Concurrent.ICallable)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("submit", "(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_util_concurrent_Callable_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("submit", "(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_util_concurrent_Callable_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.IFuture</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="task" Type="Java.Util.Concurrent.ICallable" />
</Parameters>
<Docs>
<param name="task">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/ExecutorCompletionService#submit(java.util.concurrent.Callable%3CV%3E)" title="Reference documentation">Java documentation for <code>java.util.concurrent.ExecutorCompletionService.submit(java.util.concurrent.Callable<V>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Submit">
<MemberSignature Language="C#" Value="public virtual Java.Util.Concurrent.IFuture? Submit (Java.Lang.IRunnable? task, Java.Lang.Object? result);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Concurrent.IFuture Submit(class Java.Lang.IRunnable task, class Java.Lang.Object result) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.Submit(Java.Lang.IRunnable,Java.Lang.Object)" />
<MemberSignature Language="F#" Value="abstract member Submit : Java.Lang.IRunnable * Java.Lang.Object -> Java.Util.Concurrent.IFuture
override this.Submit : Java.Lang.IRunnable * Java.Lang.Object -> Java.Util.Concurrent.IFuture" Usage="executorCompletionService.Submit (task, result)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Util.Concurrent.ICompletionService.Submit(Java.Lang.IRunnable,Java.Lang.Object)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("submit", "(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_lang_Runnable_Ljava_lang_Object_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("submit", "(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_lang_Runnable_Ljava_lang_Object_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.IFuture</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="task" Type="Java.Lang.IRunnable" />
<Parameter Name="result" Type="Java.Lang.Object" />
</Parameters>
<Docs>
<param name="task">To be added.</param>
<param name="result">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/ExecutorCompletionService#submit(java.lang.Runnable,%20V)" title="Reference documentation">Java documentation for <code>java.util.concurrent.ExecutorCompletionService.submit(java.lang.Runnable, V)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Take">
<MemberSignature Language="C#" Value="public virtual Java.Util.Concurrent.IFuture? Take ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Concurrent.IFuture Take() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.Take" />
<MemberSignature Language="F#" Value="abstract member Take : unit -> Java.Util.Concurrent.IFuture
override this.Take : unit -> Java.Util.Concurrent.IFuture" Usage="executorCompletionService.Take " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Util.Concurrent.ICompletionService.Take</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("take", "()Ljava/util/concurrent/Future;", "GetTakeHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("take", "()Ljava/util/concurrent/Future;", "GetTakeHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.IFuture</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves and removes the Future representing the next
completed task, waiting if none are yet present.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.InterruptedException" />
</Docs>
</Member>
<Member MemberName="TakeAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture?> TakeAsync ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class Java.Util.Concurrent.IFuture> TakeAsync() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.ExecutorCompletionService.TakeAsync" />
<MemberSignature Language="F#" Value="member this.TakeAsync : unit -> System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture>" Usage="executorCompletionService.TakeAsync " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture></ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdClass">
<MemberSignature Language="C#" Value="protected override IntPtr ThresholdClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ThresholdClass" />
<MemberSignature Language="DocId" Value="P:Java.Util.Concurrent.ExecutorCompletionService.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Java.Util.Concurrent.ExecutorCompletionService.ThresholdClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.IntPtr" /> which contains the <c>java.lang.Class</c> JNI value corresponding to this type.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdType">
<MemberSignature Language="C#" Value="protected override Type ThresholdType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type ThresholdType" />
<MemberSignature Language="DocId" Value="P:Java.Util.Concurrent.ExecutorCompletionService.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Java.Util.Concurrent.ExecutorCompletionService.ThresholdType" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Docs>
<summary>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.Type" /> which provides the declaring type.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
</Members>
</Type>