Skip to content

Document running a multi-threaded executor from main - #386

Open
ChrisJr404 wants to merge 1 commit into
smol-rs:masterfrom
ChrisJr404:docs-multithreaded-executor
Open

ChrisJr404 wants to merge 1 commit into
smol-rs:masterfrom
ChrisJr404:docs-multithreaded-executor

Conversation

@ChrisJr404

Copy link
Copy Markdown

Closes #317. The crate docs point at smol-macros but don't show how to start and run a multi-threaded executor directly from main, which is what that issue asked for. This adds a runnable example that creates a shared executor, runs it on a few worker threads, spawns a task, and shuts the threads down.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Better docs on multi-threaded executor

1 participant