Skip to content

client needs to tolerate futures from arbitrary EventLoops #95

Closed
@weissi

Description

@weissi

For back-pressure we've got a bunch of callbacks where the user can return futures to make the client continue. Those futures, at the moment, are required to be on the 'right' EventLoop but the client should definitely not require this. Instead, the client should always hop(to:) user futures to the correct EL if it requires it for a certain operation.

In most cases, the user will happen to return futures from the right EL anyway so hop(to:) is pretty much free (it fast paths eventLoop === future.eventLoop and just returns).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions