@@ -62,14 +62,14 @@ case class RequestConfig(url: String,
6262
6363def downloadSimple (url : String ,
6464 connectTimeout : Int ,
65- readTimeout : Int ) = doSomethingWith(config )
65+ readTimeout : Int ) = doSomethingWith(... )
6666def downloadAsync (url : String ,
6767 connectTimeout : Int ,
6868 readTimeout : Int ,
69- ec : ExecutionContext ) = doSomethingWith(config )
69+ ec : ExecutionContext ) = doSomethingWith(... )
7070def downloadStream (url : String ,
7171 connectTimeout : Int ,
72- readTimeout : Int ) = doSomethingWith(config )
72+ readTimeout : Int ) = doSomethingWith(... )
7373
7474// Call with individual parameters
7575val data = downloadSimple(" www.example.com" , 1000 , 10000 )
@@ -159,8 +159,8 @@ case class TimeoutConfig(connectTimeout: Int,
159159case class AsyncConfig (retry : Boolean , ec : ExecutionContext )
160160
161161def downloadSimple (config : RequestConfig ) = doSomethingWith(config)
162- def downloadAsync (config : RequestConfig , asyncConfig : AsyncConfig ) = doSomethingWith(config)
163- def downloadStream (config : RequestConfig , asyncConfig : AsyncConfig ) = doSomethingWith(config)
162+ def downloadAsync (config : RequestConfig , asyncConfig : AsyncConfig ) = doSomethingWith(config, asyncConfig )
163+ def downloadStream (config : RequestConfig , asyncConfig : AsyncConfig ) = doSomethingWith(config, asyncConfig )
164164
165165// Call with individual parameters
166166val data = downloadSimple(RequestConfig (" www.example.com" , TimeoutConfig (1000 , 10000 )))
@@ -203,8 +203,8 @@ case class TimeoutConfig(connectTimeout: Int,
203203case class AsyncConfig (retry : Boolean , ec : ExecutionContext )
204204
205205def downloadSimple (unpack config : RequestConfig ) = doSomethingWith(config)
206- def downloadAsync (unpack config : RequestConfig , unpack asyncConfig : AsyncConfig ) = doSomethingWith(config)
207- def downloadStream (unpack config : RequestConfig , unpack asyncConfig : AsyncConfig ) = doSomethingWith(config)
206+ def downloadAsync (unpack config : RequestConfig , unpack asyncConfig : AsyncConfig ) = doSomethingWith(config, asyncConfig )
207+ def downloadStream (unpack config : RequestConfig , unpack asyncConfig : AsyncConfig ) = doSomethingWith(config, asyncConfig )
208208
209209// Call with individual parameters
210210val data = downloadSimple(" www.example.com" , 1000 , 10000 )
0 commit comments