Skip to content

Step 1.8: Thread safety#9

Open
ziimakc wants to merge 1 commit intomainfrom
1_8_thread_safety
Open

Step 1.8: Thread safety#9
ziimakc wants to merge 1 commit intomainfrom
1_8_thread_safety

Conversation

@ziimakc
Copy link
Owner

@ziimakc ziimakc commented Jan 28, 2026

Resolves Step 1.8

Task

Implement the following types, which meet conditions:

  1. OnlySync is Sync, but !Send.
  2. OnlySend is Send, but !Sync.
  3. SyncAndSend is both Sync and Send.
  4. NotSyncNotSend is both !Sync and !Send.

All inner details of implementation are on your choice.

Play with these types from multiple threads to see how compile time [fearless concurrency][2] works in practice.

Solution

Complete task using existing Synd/Sync types to avoid nightly rust (negative impl). Add a few examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant