Skip to content

Commit

Permalink
Update ydb/docs/ru/core/reference/ydb-sdk/topic.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Blinkov <[email protected]>
  • Loading branch information
Zork33 and blinkov authored Oct 15, 2024
1 parent ae595e9 commit cea2ac4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ydb/docs/ru/core/reference/ydb-sdk/topic.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
}
```

В обоих примерах кода выше используется блок ([try-with-resources](https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html)).
Это позволяет автоматически закрывать клиент и транспорт при выходе из этого блока, т.к. оба являются наследниками `AutoCloseable`.
В обоих примерах кода выше используется блок [try-with-resources](https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html), что позволяет автоматически закрывать клиент и транспорт при выходе из этого блока, так как оба являются наследниками `AutoCloseable`.

- Node.js

Expand Down

0 comments on commit cea2ac4

Please sign in to comment.