Skip to content

RxScala: Subscription add with block expression #1258

Closed
@headinthebox

Description

@headinthebox
final def add(s: Subscription): Unit = {
    asJavaSubscriber.add(s.asJavaSubscription)
  }

add

final def add(s: =>Unit): Unit = ...

So you can write s.add{ blah; blah }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions