Skip to content

Commit

Permalink
Bump version [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislav-yashin committed May 27, 2018
1 parent 8190a72 commit ebae800
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 1.0.0 / 2018-05-27

* Return promises from TD::Client#broadcast
* Add #fetch as alias to #broadcast_and_receive

### 0.9.4 / 2018-05-16

* Fix recursive locking in nested handlers
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ end
p @me
```

## TD::Client#broadcast

From version 1.0 TD::Client##broadcast returns [Concurrent::Promise](http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Promise.html) object.

```ruby
me = client.broadcast('@type' => 'getMe').then { |result| puts result }.rescue { |error| puts error }.value
```

## Configuration

```ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/tdlib/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TD
# tdlib-ruby version
VERSION = "0.9.4"
VERSION = "1.0.0"
end

0 comments on commit ebae800

Please sign in to comment.