Channel.CreateBounded 메서드

정의

오버로드

Name Description
CreateBounded<T>(Int32)

지정된 최대 용량으로 채널을 만듭니다.

CreateBounded<T>(BoundedChannelOptions)

지정된 최대 용량으로 채널을 만듭니다.

CreateBounded<T>(BoundedChannelOptions, Action<T>)

제공된 옵션에 따라 채널을 만듭니다.

CreateBounded<T>(Int32)

Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs

지정된 최대 용량으로 채널을 만듭니다.

public:
generic <typename T>
 static System::Threading::Channels::Channel<T> ^ CreateBounded(int capacity);
public static System.Threading.Channels.Channel<T> CreateBounded<T>(int capacity);
static member CreateBounded : int -> System.Threading.Channels.Channel<'T>
Public Shared Function CreateBounded(Of T) (capacity As Integer) As Channel(Of T)

형식 매개 변수

T

채널의 데이터 형식을 지정합니다.

매개 변수

capacity
Int32

채널에서 저장할 수 있는 최대 항목 수입니다.

반품

만든 채널입니다.

예외

capacity 가 음수입니다.

설명

이 메서드를 사용하여 만든 채널은 동작을 Wait 적용하고 연속이 동기적으로 실행되는 것을 금지합니다.

적용 대상

CreateBounded<T>(BoundedChannelOptions)

Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs

지정된 최대 용량으로 채널을 만듭니다.

public:
generic <typename T>
 static System::Threading::Channels::Channel<T> ^ CreateBounded(System::Threading::Channels::BoundedChannelOptions ^ options);
public static System.Threading.Channels.Channel<T> CreateBounded<T>(System.Threading.Channels.BoundedChannelOptions options);
static member CreateBounded : System.Threading.Channels.BoundedChannelOptions -> System.Threading.Channels.Channel<'T>
Public Shared Function CreateBounded(Of T) (options As BoundedChannelOptions) As Channel(Of T)

형식 매개 변수

T

채널의 데이터 형식을 지정합니다.

매개 변수

options
BoundedChannelOptions

채널의 동작을 안내하는 옵션입니다.

반품

만든 채널입니다.

예외

optionsnull입니다.

적용 대상

CreateBounded<T>(BoundedChannelOptions, Action<T>)

Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs
Source:
Channel.cs

제공된 옵션에 따라 채널을 만듭니다.

public:
generic <typename T>
 static System::Threading::Channels::Channel<T> ^ CreateBounded(System::Threading::Channels::BoundedChannelOptions ^ options, Action<T> ^ itemDropped);
public static System.Threading.Channels.Channel<T> CreateBounded<T>(System.Threading.Channels.BoundedChannelOptions options, Action<T>? itemDropped);
static member CreateBounded : System.Threading.Channels.BoundedChannelOptions * Action<'T> -> System.Threading.Channels.Channel<'T>
Public Shared Function CreateBounded(Of T) (options As BoundedChannelOptions, itemDropped As Action(Of T)) As Channel(Of T)

형식 매개 변수

T

채널의 데이터 형식을 지정합니다.

매개 변수

options
BoundedChannelOptions

채널의 동작을 안내하는 옵션입니다.

itemDropped
Action<T>

채널에서 항목을 삭제할 때 호출되는 대리자입니다. BoundedChannelFullMode을(를) 참조하세요.

반품

만든 채널입니다.

예외

optionsnull입니다.

적용 대상