BatchedJoinBlock<T1,T2>.TryReceive 메서드

정의

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

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

매개 변수

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

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

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

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

반환

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

설명

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

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

적용 대상