about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-07-23 20:00:33 -0700
committerBrian Anderson <banderson@mozilla.com>2011-07-24 16:18:05 -0700
commit73fed0110823fad26900626bd043b4647e8b3fb7 (patch)
tree506a6089e8780b44a1e0eb74e91553d6b36113dc /src/rt/rust_task.cpp
parentb82bedb28ed0c3d474edc254fe0ebb5e577b7ca4 (diff)
downloadrust-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