Skip to content

Feature Request: Allow to take over the payload in BasicDeliver call #937

Open
@zgabi

Description

@zgabi

Since in version 6.x the data which is received by the consumer is returned to the buffer pool after the call is finished some users (like me) needs to copy that data.

Could you please add a functionality which allows the users to take over the data, so it is not returned to the pool? So the user can return it when it is not needed anymore. (By getting it from the ReadOnlyMemory<byte> with MemoryMarshall.TryGetArray, or any other way (*))

For example as in this commit: zgabi@11e72bd

(*): For example passing a custom struct instead of the ReadOnlyMemoryparameter, which has a Takeover or similar method.

Metadata

Metadata

Assignees

Labels

next-gen-todoIf a rewrite happens, address this issue.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions