# ResponseCompletionSourcePool Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsourcepool/)

## Get {#get-231d3ea5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsourcepool/methods/get-231d3ea5/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/Pools/ResponseCompletionSourcePool.cs)

```csharp
public static ResponseCompletionSource Get()
```

Gets a value from the pool.

### Returns

A value from the pool.

## Get {#get-1-9d5202d9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsourcepool/methods/get-1-9d5202d9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/Pools/ResponseCompletionSourcePool.cs)

```csharp
public static ResponseCompletionSource<T> Get<T>()
```

Gets a value from the pool.

### Returns

A value from the pool.

## Return(ResponseCompletionSource) {#return-orleans-serialization-invocation-responsecompletionsource-8fca9236}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsourcepool/methods/return-orleans-serialization-invocation-responsecompletionsource-8fca9236/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/Pools/ResponseCompletionSourcePool.cs)

```csharp
public static void Return(ResponseCompletionSource obj)
```

Returns a value to the pool.

### Parameters

- `obj` (`ResponseCompletionSource`): The value to return to the pool

## Return(ResponseCompletionSource&lt;T&gt;) {#return-1-orleans-serialization-invocation-responsecompletionsource-t-22b0046a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.responsecompletionsourcepool/methods/return-1-orleans-serialization-invocation-responsecompletionsource-t-22b0046a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Invocation/Pools/ResponseCompletionSourcePool.cs)

```csharp
public static void Return<T>(ResponseCompletionSource<T> obj)
```

Returns a value to the pool.

### Parameters

- `obj` (`ResponseCompletionSource<T>`): The value to return to the pool
