Aaron Turon a23511a65d Revamp TaskBuilder API
This patch consolidates and cleans up the task spawning APIs:

* Removes the problematic `future_result` method from `std::task::TaskBuilder`,
  and adds a `try_future` that both spawns the task and returns a future
  representing its eventual result (or failure).

* Removes the public `opts` field from `TaskBuilder`, instead adding appropriate
  builder methods to configure the task.

* Adds extension traits to libgreen and libnative that add methods to
  `TaskBuilder` for spawning the task as a green or native thread.

Previously, there was no way to benefit from the `TaskBuilder` functionality and
also set the scheduler to spawn within.

With this change, all task spawning scenarios are supported through the
`TaskBuilder` interface.

Closes #3725.

[breaking-change]
2014-06-18 17:01:45 -07:00
..
2014-06-15 23:30:24 -07:00
2014-06-15 23:30:24 -07:00
2014-06-11 15:02:17 -07:00
2014-06-01 10:31:27 -07:00
2014-06-15 23:30:24 -07:00
2014-06-18 01:13:53 -07:00
2014-06-05 13:55:10 -07:00
2014-06-14 10:28:09 -07:00
2014-06-14 10:28:09 -07:00
2014-06-09 12:44:45 -07:00
2014-06-12 21:15:14 +03:00
2014-06-18 17:01:45 -07:00
2014-06-11 15:02:17 -07:00