Skip to content

Commit 0a79692

Browse files
committed
Add release notes.
1 parent 4a7549e commit 0a79692

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

releases.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Releases
22

3+
## Unreleased
4+
5+
### Console Shims
6+
7+
The `async` gem depends on `console` gem, because my goal was to have good logging by default without thinking about it too much. However, some users prefer to avoid using the `console` gem for logging, so I've added an experimental set of shims which should allow you to bypass the `console` gem entirely.
8+
9+
```ruby
10+
require 'async/console'
11+
require 'async'
12+
13+
Async{raise "Boom"}
14+
```
15+
16+
Will now use `Kernel#warn` to print the task failure warning:
17+
18+
```
19+
#<Async::Task:0x00000000000012d4 /home/samuel/Developer/socketry/async/lib/async/task.rb:104:in `backtrace' (running)>
20+
Task may have ended with unhandled exception.
21+
(irb):4:in `block in <top (required)>': Boom (RuntimeError)
22+
from /home/samuel/Developer/socketry/async/lib/async/task.rb:197:in `block in run'
23+
from /home/samuel/Developer/socketry/async/lib/async/task.rb:420:in `block in schedule'
24+
```
25+
326
## v2.18.0
427

528
- Add support for `Sync(annotation:)`, so that you can annotate the block with a description of what it does, even if it doesn't create a new task.

0 commit comments

Comments
 (0)