@@ -62,14 +62,14 @@ case class RequestConfig(url: String,
62
62
63
63
def downloadSimple (url : String ,
64
64
connectTimeout : Int ,
65
- readTimeout : Int ) = doSomethingWith(config )
65
+ readTimeout : Int ) = doSomethingWith(... )
66
66
def downloadAsync (url : String ,
67
67
connectTimeout : Int ,
68
68
readTimeout : Int ,
69
- ec : ExecutionContext ) = doSomethingWith(config )
69
+ ec : ExecutionContext ) = doSomethingWith(... )
70
70
def downloadStream (url : String ,
71
71
connectTimeout : Int ,
72
- readTimeout : Int ) = doSomethingWith(config )
72
+ readTimeout : Int ) = doSomethingWith(... )
73
73
74
74
// Call with individual parameters
75
75
val data = downloadSimple(" www.example.com" , 1000 , 10000 )
@@ -159,8 +159,8 @@ case class TimeoutConfig(connectTimeout: Int,
159
159
case class AsyncConfig (retry : Boolean , ec : ExecutionContext )
160
160
161
161
def 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 )
164
164
165
165
// Call with individual parameters
166
166
val data = downloadSimple(RequestConfig (" www.example.com" , TimeoutConfig (1000 , 10000 )))
@@ -203,8 +203,8 @@ case class TimeoutConfig(connectTimeout: Int,
203
203
case class AsyncConfig (retry : Boolean , ec : ExecutionContext )
204
204
205
205
def 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 )
208
208
209
209
// Call with individual parameters
210
210
val data = downloadSimple(" www.example.com" , 1000 , 10000 )
0 commit comments