Skip to content

Add spawn_fn to Remote. #57

@carllerche

Description

@carllerche

This issue currently represents the task of unifying "spawning" functions across Handle, Remote and potentially other executors (like CPU pool).

Currently Handle::spawn takes a future where as Remote::spawn takes a fn.

Also, there are other questions to consider, such as #77

Original issue

It looks like spawn_fn already exists on Handle.

https://tokio-rs.github.io/tokio-core/tokio_core/reactor/struct.Handle.html#method.spawn_fn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions