You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is primarily for compatibility with existing code. If you are designing a new library, you should just use `Async` directly:
33
33
34
-
```ruby
34
+
```ruby
35
35
Asyncdo
36
36
response1 =Async{adapter.get("/index")}
37
37
response2 =Async{adapter.get("/index")}
@@ -49,7 +49,7 @@ end
49
49
50
50
The `config_block` provided to the adapter must now return `nil`, `client` or a middleware wrapper around `client`.
51
51
52
-
```ruby
52
+
```ruby
53
53
Faraday.newdo |builder|
54
54
builder.adapter :async_httpdo |client|
55
55
# Option 1 (same as returning `nil`), use client as is:
@@ -67,7 +67,7 @@ end
67
67
68
68
The default adapter now uses a per-thread client cache internally, to improve compatibility with existing code that shares a single `Faraday::Connection` instance across multiple threads.
0 commit comments