Permalink
Browse files

Update server-side suggestions

  • Loading branch information...
mxcl committed Aug 15, 2018
1 parent bf8cc0b commit d6f24e2b0d0644c3307b9304b593c2c857d6efd8
Showing with 4 additions and 1 deletion.
  1. +4 −1 Documentation/FAQ.md
View
@@ -339,6 +339,8 @@ main queue by default. This is easy enough:
PromiseKit.conf.Q = (map: DispatchQueue.global(), return: DispatchQueue.global())
```
> Note, we recommend using your own queue rather than `.global()`, we've seen better performance this way.
Here’s a more complete example:
```swift
@@ -350,7 +352,8 @@ import PromiseKit
HeliumLogger.use(.info)
PromiseKit.conf.Q = (map: DispatchQueue.global(), return: DispatchQueue.global())
let pmkQ = DispatchQueue(label: "pmkQ", qos: .default, attributes: .concurrent, autoreleaseFrequency: .workItem)
PromiseKit.conf.Q = (map: pmkQ, return: pmkQ)
let router = Router()
router.get("/") { _, response, next in

0 comments on commit d6f24e2

Please sign in to comment.