Skip to content

Make TaskBuilder methods return Self again so we can use the builder pattern. #6399

Closed
@metajack

Description

@metajack

Specifically sched_mode() now returns () instead of the builder. This broke servo code using the following pattern:

task::task().sched_mode(Foo).spawn {
    ....
}

EDIT(bblum): All methods seem to return (). They should all return Self except for the spawn methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions