diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-07-23 20:00:33 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-07-24 16:18:05 -0700 |
| commit | 73fed0110823fad26900626bd043b4647e8b3fb7 (patch) | |
| tree | 506a6089e8780b44a1e0eb74e91553d6b36113dc /src/rt/rust_task.cpp | |
| parent | b82bedb28ed0c3d474edc254fe0ebb5e577b7ca4 (diff) | |
| download | rust-73fed0110823fad26900626bd043b4647e8b3fb7.tar.gz rust-73fed0110823fad26900626bd043b4647e8b3fb7.zip | |
Add task::worker. Spawns a task and returns a channel to it
It takes a lot of boilerplate to create a task and establish a way to talk to it. This function simplifies that, allowing you to write something like 'worker(f).chan <| start'. Implementation is very unsafe and only works for a few types of channels, but something like this is very useful.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
