Skip to content

Commit

Permalink
deploy: 6b2aed6
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP committed Jan 30, 2025
1 parent 4ca328f commit 20804b4
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ Owned types Owned types are allocated by the user and it is their responsibility
Previously, we were returning Zenoh structures by value. In Zenoh 1.0.0, a reference to memory must be provided. This allows initializing user allocated structures and frees return value for error codes.</description></item><item><title>Python</title><link>/docs/migration_1.0/python/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/migration_1.0/python/</guid><description>Highlights The library has been fully rewritten to use only Rust. It should make no difference for users, except for a significant performance improvement.
The API has also been reworked to feel more pythonic, using notably context managers.
Context managers and background callbacks You should close the zenoh session after use and the recommended way is through context manager:
import zenoh with zenoh.open(zenoh.Config()) as session: # `session.close()` will be called at the end of the block Session-managed objects like subscribers or queryables can also be managed using context managers:</description></item><item><title>Java</title><link>/docs/migration_1.0/java/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/migration_1.0/java/</guid><description>The Java API is still a work in progress. This migration guide will be updated as soon as the new Zenoh-Java API is released!</description></item><item><title>Kotlin</title><link>/docs/migration_1.0/kotlin/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/migration_1.0/kotlin/</guid><description>Kotlin API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind:
import zenoh with zenoh.open(zenoh.Config()) as session: # `session.close()` will be called at the end of the block Session-managed objects like subscribers or queryables can also be managed using context managers:</description></item><item><title>Java</title><link>/docs/migration_1.0/java/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/migration_1.0/java/</guid><description>Java API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind:
Match the API rework done through the Rust Zenoh API. Abstracting users from the underlying native mechanisms. Making the API more idiomatic, more &amp;ldquo;imperative&amp;rdquo;. Remotion of the builder patterns and options parameters Throughout the 0.11.0 API, we were exposing builders, for instance:
session.put(keyExpr, value) .congestionControl(CongestionControl.BLOCK) .priority(Priority.REALTIME) .res() This seemed odd, because &amp;ldquo;put&amp;rdquo; is an imperative statement.</description></item><item><title>Kotlin</title><link>/docs/migration_1.0/kotlin/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/migration_1.0/kotlin/</guid><description>Kotlin API migration guide for 1.0.0 The API has been extensively modified with the following goals in mind:
Enhancing the API to be more idiomatic to Kotlin. Match the API rework done through the Rust Zenoh API. Abstracting users from the underlying native mechanisms Default arguments Throughout the 0.11.0 API we were exposing builders, however we decided to replace all of them with the more Kotlin-idiomatic way of the default arguments.</description></item></channel></rss>
Loading

0 comments on commit 20804b4

Please sign in to comment.