Skip to content

ChitImpl.AlreadyDisposed is premature optimization  #5

@nedtwigg

Description

@nedtwigg

Probably slows things down with slower dispatch. Should definitely remove this, and consider making Chit a class with final methods.

static final class AlreadyDisposed implements Chit {
@Override
public boolean isDisposed() {
return true;
}
@Override
public void runWhenDisposed(Runnable whenDisposed) {
whenDisposed.run();
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions