Share via


BatchedJoinBlock<T1,T2,T3>.TryReceive 메서드

정의

IReceivableSourceBlock<TOutput>에서 사용 가능한 출력 항목을 비동기적으로 받으려고 시도합니다.

public:
 virtual bool TryReceive(Predicate<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^, System::Collections::Generic::IList<T3> ^> ^> ^ filter, [Runtime::InteropServices::Out] Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^, System::Collections::Generic::IList<T3> ^> ^ % item);
public bool TryReceive (Predicate<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>> filter, out Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>> item);
public bool TryReceive (Predicate<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>>? filter, out Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>,System.Collections.Generic.IList<T3>>? item);
abstract member TryReceive : Predicate<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>> * Tuple -> bool
override this.TryReceive : Predicate<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2> * System.Collections.Generic.IList<'T3>> * Tuple -> bool
Public Function TryReceive (filter As Predicate(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))), ByRef item As Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))) As Boolean

매개 변수

filter
Predicate<Tuple<IList<T1>,IList<T2>,IList<T3>>>

값을 수신하려면 성공적으로 전달해야 하는 조건자입니다. 모든 항목이 통과할 경우 filternull일 수 있습니다.

item
Tuple<IList<T1>,IList<T2>,IList<T3>>

소스에서 받은 항목입니다.

반환

Boolean

항목을 수신할 수 있으면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드는 원본이 항목을 제공할 때까지 대기하는 것을 차단하지 않습니다.

요소를 사용할 수 있는지 여부를 확인한 후 반환됩니다.

적용 대상