Skip to content

Conversation

czechboy0
Copy link
Contributor

Motivation

It's important that every public type has been explicitly considered to be or not be Sendable, and we should reflect it in the type system.

The -Xfrontend -require-explicit-sendable flags allow emitting a warning when this is missed.

Modifications

Added the flags to be included whenever we're building all traits using the env var, basically means in CI and optionally locally during development.

Result

Will surface any time when a new public type is added without an explicit Sendable/not Sendable annotation.

Test Plan

Ran locally, tried adding a dummy implicitly not Sendable type, saw the warning.

@czechboy0
Copy link
Contributor Author

This might need to be done together with #17 and #23 as they all relate to each other and it's difficult to do only one.

@czechboy0 czechboy0 marked this pull request as draft October 15, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a CI pipeline that builds with the explicit sendable setting ConfigUpdatesAsyncSequence - should it be Sendable or passed as sending?

2 participants