Skip to content

Commit 33567bc

Browse files
authored
Update unpack.md
1 parent 7aff487 commit 33567bc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/unpack.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ case class RequestConfig(url: String,
6262

6363
def downloadSimple(url: String,
6464
connectTimeout: Int,
65-
readTimeout: Int) = doSomethingWith(config)
65+
readTimeout: Int) = doSomethingWith(...)
6666
def downloadAsync(url: String,
6767
connectTimeout: Int,
6868
readTimeout: Int,
69-
ec: ExecutionContext) = doSomethingWith(config)
69+
ec: ExecutionContext) = doSomethingWith(...)
7070
def downloadStream(url: String,
7171
connectTimeout: Int,
72-
readTimeout: Int) = doSomethingWith(config)
72+
readTimeout: Int) = doSomethingWith(...)
7373

7474
// Call with individual parameters
7575
val data = downloadSimple("www.example.com", 1000, 10000)
@@ -159,8 +159,8 @@ case class TimeoutConfig(connectTimeout: Int,
159159
case class AsyncConfig(retry: Boolean, ec: ExecutionContext)
160160

161161
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)
164164

165165
// Call with individual parameters
166166
val data = downloadSimple(RequestConfig("www.example.com", TimeoutConfig(1000, 10000)))
@@ -203,8 +203,8 @@ case class TimeoutConfig(connectTimeout: Int,
203203
case class AsyncConfig(retry: Boolean, ec: ExecutionContext)
204204

205205
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)
208208

209209
// Call with individual parameters
210210
val data = downloadSimple("www.example.com", 1000, 10000)

0 commit comments

Comments
 (0)