Document the attributes required by @run_on_executor.

Closes #933.