JoinBlock<T1,T2,T3>.TryReceive Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.
public:
virtual bool TryReceive(Predicate<Tuple<T1, T2, T3> ^> ^ filter, [Runtime::InteropServices::Out] Tuple<T1, T2, T3> ^ % item);
public bool TryReceive (Predicate<Tuple<T1,T2,T3>> filter, out Tuple<T1,T2,T3> item);
public bool TryReceive (Predicate<Tuple<T1,T2,T3>>? filter, out Tuple<T1,T2,T3>? item);
abstract member TryReceive : Predicate<'T1 * 'T2 * 'T3> * Tuple -> bool
override this.TryReceive : Predicate<'T1 * 'T2 * 'T3> * Tuple -> bool
Public Function TryReceive (filter As Predicate(Of Tuple(Of T1, T2, T3)), ByRef item As Tuple(Of T1, T2, T3)) As Boolean
Parameters
The predicate value must successfully pass in order for it to be received. filter
may be null
, in which case all items will pass.
- item
- Tuple<T1,T2,T3>
The item received from the source.
Returns
true
if an item could be received; otherwise, false
.
Remarks
This method does not block waiting for the source to provide an item.
It will return after checking for an element, whether or not an element was available.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기