Skip to content

ChitImpl.AlreadyDisposed is premature optimization  #5

Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions