| 1455 | |
| 1456 | template <typename Function> |
| 1457 | inline void spawn(ASIO_MOVE_ARG(Function) function, |
| 1458 | const boost::coroutines::attributes& attributes) |
| 1459 | { |
| 1460 | typedef typename decay<Function>::type function_type; |
| 1461 | |
| 1462 | typename associated_executor<function_type>::type ex( |
| 1463 | (get_associated_executor)(function)); |
| 1464 | |
| 1465 | asio::spawn(ex, ASIO_MOVE_CAST(Function)(function), attributes); |
| 1466 | } |
| 1467 | |
| 1468 | template <typename Handler, typename Function> |
| 1469 | void spawn(ASIO_MOVE_ARG(Handler) handler, |