Skip to content

Reconsider Context::executor returning Option #944

@carllerche

Description

@carllerche

It seems that Context::executor was changed to return Option because in no_std Executor is not available.

However, the executor fn is not included when no_std is enabled. Given that Context::executor is present so that all callers can assume that an executor is present, would it be better for it not to return an Option?

Maybe if std is present, initializing a Context w/o a can panic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions