IExecutorServiceExtensions.InvokeAnyAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Descrição |
|---|---|
| InvokeAnyAsync(IExecutorService, ICollection) |
É executado InvokeAny(ICollection) no executor especificado por meio de Task. |
| InvokeAnyAsync(IExecutorService, ICollection, Int64, TimeUnit) |
É executado InvokeAny(ICollection, Int64, TimeUnit) no executor especificado por meio de Task. |
InvokeAnyAsync(IExecutorService, ICollection)
É executado InvokeAny(ICollection) no executor especificado por meio de Task.
public static System.Threading.Tasks.Task<Java.Lang.Object?> InvokeAnyAsync(this Java.Util.Concurrent.IExecutorService self, System.Collections.ICollection? tasks);
static member InvokeAnyAsync : Java.Util.Concurrent.IExecutorService * System.Collections.ICollection -> System.Threading.Tasks.Task<Java.Lang.Object>
Parâmetros
- self
- IExecutorService
O executor cujo InvokeAny(ICollection) método é chamado.
- tasks
- ICollection
As tarefas chamáveis passadas para InvokeAny(ICollection).
Retornos
Uma tarefa cujo resultado é o valor retornado por InvokeAny(ICollection) um callable bem-sucedido.
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.
Aplica-se a
InvokeAnyAsync(IExecutorService, ICollection, Int64, TimeUnit)
É executado InvokeAny(ICollection, Int64, TimeUnit) no executor especificado por meio de Task.
public static System.Threading.Tasks.Task<Java.Lang.Object?> InvokeAnyAsync(this Java.Util.Concurrent.IExecutorService self, System.Collections.ICollection? tasks, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member InvokeAnyAsync : Java.Util.Concurrent.IExecutorService * System.Collections.ICollection * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Lang.Object>
Parâmetros
- self
- IExecutorService
O executor cujo método cronometrado InvokeAny(ICollection, Int64, TimeUnit) é chamado.
- tasks
- ICollection
As tarefas chamáveis passadas para InvokeAny(ICollection, Int64, TimeUnit).
- timeout
- Int64
A duração máxima da espera passada para InvokeAny(ICollection, Int64, TimeUnit).
- unit
- TimeUnit
A unidade usada para medir timeout.
Retornos
Uma tarefa cujo resultado é o valor retornado pela chamada cronometrada InvokeAny(ICollection, Int64, TimeUnit) de um callable bem-sucedido.
Comentários
Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.