Skip to content

Disposables.from annoying to use with lambda #4446

@robeden

Description

@robeden

(Sorry if this isn't the best place for this feedback.)

Disposables.from() in 2.0 (RC-1) is annoying to use with a lambda because both Runnable and Action match. Example:

Disposables.from( () -> {} );             // This won't compile
Disposables.from( (Runnable) () -> {} );  // This compiles

Perhaps one form should have different name?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions