Skip to content

Commit 3a6235a

Browse files
committed
Release 0.5.14
1 parent ae680ba commit 3a6235a

9 files changed

Lines changed: 19 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ the project!
2323
To test Ox, use the following dependency, using either [sbt](https://www.scala-sbt.org):
2424

2525
```scala
26-
"com.softwaremill.ox" %% "core" % "0.5.13"
26+
"com.softwaremill.ox" %% "core" % "0.5.14"
2727
```
2828

2929
Or [scala-cli](https://scala-cli.virtuslab.org):
3030

3131
```scala
32-
//> using dep "com.softwaremill.ox::core:0.5.13"
32+
//> using dep "com.softwaremill.ox::core:0.5.14"
3333
```
3434

3535
Documentation is available at [https://ox.softwaremill.com](https://ox.softwaremill.com), ScalaDocs can be browsed at [https://javadoc.io](https://www.javadoc.io/doc/com.softwaremill.ox).

generated-doc/out/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Safe direct-style concurrency and resiliency for Scala on the JVM. Requires JDK 21 & Scala 3.
44

5-
To start using Ox, add the `com.softwaremill.ox::core:0.5.13` [dependency](info/dependency.md) to your project.
5+
To start using Ox, add the `com.softwaremill.ox::core:0.5.14` [dependency](info/dependency.md) to your project.
66
Then, take a look at the tour of Ox, or follow one of the topics listed in the menu to get to know Ox's API!
77

88
In addition to this documentation, ScalaDocs can be browsed at [https://javadoc.io](https://www.javadoc.io/doc/com.softwaremill.ox).

generated-doc/out/info/dependency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ To use ox core in your project, add:
44

55
```scala
66
// sbt dependency
7-
"com.softwaremill.ox" %% "core" % "0.5.13"
7+
"com.softwaremill.ox" %% "core" % "0.5.14"
88

99
// scala-cli dependency
10-
//> using dep com.softwaremill.ox::core:0.5.13
10+
//> using dep com.softwaremill.ox::core:0.5.14
1111
```
1212

1313
Ox core depends only on the Java [jox](https://github.com/softwaremill/jox) project, where channels are implemented. There are no other direct or transitive dependencies.

generated-doc/out/integrations/cron4s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dependency:
44

55
```scala
6-
"com.softwaremill.ox" %% "cron" % "0.5.13"
6+
"com.softwaremill.ox" %% "cron" % "0.5.14"
77
```
88

99
This module allows to run schedules based on cron expressions from [cron4s](https://github.com/alonsodomin/cron4s).

generated-doc/out/integrations/kafka.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dependency:
44

55
```scala
6-
"com.softwaremill.ox" %% "kafka" % "0.5.13"
6+
"com.softwaremill.ox" %% "kafka" % "0.5.14"
77
```
88

99
`Flow`s which read from a Kafka topic, mapping stages and drains which publish to Kafka topics are available through

generated-doc/out/integrations/mdc-logback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dependency:
44

55
```scala
6-
"com.softwaremill.ox" %% "mdc-logback" % "0.5.13"
6+
"com.softwaremill.ox" %% "mdc-logback" % "0.5.14"
77
```
88

99
Ox provides support for setting inheritable MDC (mapped diagnostic context) values, when using the [Logback](https://logback.qos.ch)

generated-doc/out/integrations/otel-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dependency:
44

55
```scala
6-
"com.softwaremill.ox" %% "otel-context" % "0.5.13"
6+
"com.softwaremill.ox" %% "otel-context" % "0.5.14"
77
```
88

99
When using the default OpenTelemetry context-propagation mechanisms, which rely on thread-local storage, the context

generated-doc/out/streaming/flows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ To obtain a `org.reactivestreams.Publisher` instance, you'll need to add the fol
171171
bring the `toReactiveStreamsPublisher` method into scope:
172172

173173
```scala
174-
// sbt dependency: "com.softwaremill.ox" %% "flow-reactive-streams" % "0.5.13"
174+
// sbt dependency: "com.softwaremill.ox" %% "flow-reactive-streams" % "0.5.14"
175175

176176
import ox.supervised
177177
import ox.flow.Flow

generated-doc/out/structured-concurrency/fork-join.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,12 @@ completed.
136136
## Customizing thread creation
137137

138138
By default, for each fork a new virtual thread is created using `Thread.ofVirtual().factory()`. This can be customized
139-
globally using `oxThreadFactory`.
139+
globally using `oxThreadFactory`.
140+
141+
## Integrating structured concurrency with other libraries
142+
143+
When integrating with libraries which manage their own threads, e.g. reactive libraries, it is sometimes necessary to
144+
be able to start forks from such library-managed threads. For this purpose, the `inScopeRunner` method can be used.
145+
146+
A runner obtained from a scope-managed thread can be passed to other threads, and used to start forks within the
147+
concurrency scope, as long as it's not complete, from arbitrary threads.

0 commit comments

Comments
 (0)