#19238 add detach operator and fix Detach stage

This commit is contained in:
Roland Kuhn 2015-12-20 11:25:53 +01:00
parent aadaf15b89
commit b0b03176ae
9 changed files with 133 additions and 2 deletions

View file

@ -585,7 +585,10 @@ object TestSubscriber {
private lazy val subscription = expectSubscription()
/** Asserts that a subscription has been received or will be received */
def ensureSubscription(): Unit = subscription // initializes lazy val
def ensureSubscription(): Self = {
subscription // initializes lazy val
this
}
def request(n: Long): Self = {
subscription.request(n)