async 2.27.1 → 2.27.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c419b1abab6e535bd3f68c7de489ad0086e236f54b513d959f0b5d81373039e2
4
- data.tar.gz: d995214a8ac8539172ffe669563cdaaca34925b7da97939095d2f48f22628ead
3
+ metadata.gz: 0b9a05a1a8805487af4de1c4314159fc6e32279acd9ec99baf496bd13b6a16b3
4
+ data.tar.gz: 2a917a8644c0f081bda2283f0b4aab1ed11ed2b88e7570eb7ec6ac9d1db6570b
5
5
  SHA512:
6
- metadata.gz: 79cf05bc46450f20fdbf524f7bc1886564b26cadcbf731c3186c3f1dbec93ad51f15bc042591b77a790d0647a768103533b2eae8ff732ef5350e3ad2b866ffe0
7
- data.tar.gz: 7663314ae8ad34d6c7d647ce8065268cc91754828d474044e3b2c5a6c80bbc9f8467b12fb90af6d4f3d5db6c0a14cc74735ce32ffa37998b2d9c261c5cc4a876
6
+ metadata.gz: b5a69e355657bc135268bdbcd1ae6738ec7e32c8869cd2c6bae4140b7938773595ced413e71feeedcc340d197148c3e557f89d5a9953e44f73f2aca92a7f57bd
7
+ data.tar.gz: 63c0498a5154d65ef6793685ab82bc72aa0d5c99d734ee7c2aa446adbed4046434991c476474189bf690ca87c376bdd0e1b45c5fc74ff6bd4e338b2a376e4e82
checksums.yaml.gz.sig CHANGED
Binary file
data/context/index.yaml CHANGED
@@ -1,29 +1,29 @@
1
1
  # Automatically generated context index for Utopia::Project guides.
2
2
  # Do not edit then files in this directory directly, instead edit the guides and then run `bake utopia:project:agent:context:update`.
3
3
  ---
4
- getting-started:
4
+ description: A concurrency framework for Ruby.
5
+ metadata:
6
+ documentation_uri: https://socketry.github.io/async/
7
+ funding_uri: https://github.com/sponsors/ioquatix/
8
+ source_code_uri: https://github.com/socketry/async.git
9
+ files:
10
+ - path: getting-started.md
5
11
  title: Getting Started
6
- order: 1
7
12
  description: This guide shows how to add async to your project and run code asynchronously.
8
- scheduler:
13
+ - path: scheduler.md
9
14
  title: Scheduler
10
- order: 2
11
15
  description: This guide gives an overview of how the scheduler is implemented.
12
- tasks:
13
- title: Asynchronous Tasks
14
- order: 3
16
+ - path: tasks.md
17
+ title: Tasks
15
18
  description: This guide explains how asynchronous tasks work and how to use them.
16
- best-practices:
19
+ - path: best-practices.md
17
20
  title: Best Practices
18
- order: 5
19
21
  description: This guide gives an overview of best practices for using Async.
20
- debugging:
22
+ - path: debugging.md
21
23
  title: Debugging
22
- order: 6
23
24
  description: This guide explains how to debug issues with programs that use Async.
24
- thread-safety:
25
+ - path: thread-safety.md
25
26
  title: Thread safety
26
- order: 10
27
27
  description: This guide explains thread safety in Ruby, focusing on fibers and threads,
28
28
  common pitfalls, and best practices to avoid problems like data corruption, race
29
29
  conditions, and deadlocks.
data/context/tasks.md CHANGED
@@ -1,4 +1,4 @@
1
- # Asynchronous Tasks
1
+ # Tasks
2
2
 
3
3
  This guide explains how asynchronous tasks work and how to use them.
4
4
 
data/lib/async/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2025, by Samuel Williams.
5
5
 
6
6
  module Async
7
- VERSION = "2.27.1"
7
+ VERSION = "2.27.3"
8
8
  end
@@ -19,7 +19,7 @@ Traces::Provider(Async::Task) do
19
19
 
20
20
  attributes = {
21
21
  # We use the instance variable as it corresponds to the user-provided block.
22
- "block" => @block,
22
+ "block" => @block.to_s,
23
23
  "transient" => self.transient?,
24
24
  }
25
25
 
data/readme.md CHANGED
@@ -23,7 +23,7 @@ Please see the [project documentation](https://socketry.github.io/async/) for mo
23
23
 
24
24
  - [Scheduler](https://socketry.github.io/async/guides/scheduler/index) - This guide gives an overview of how the scheduler is implemented.
25
25
 
26
- - [Asynchronous Tasks](https://socketry.github.io/async/guides/tasks/index) - This guide explains how asynchronous tasks work and how to use them.
26
+ - [Tasks](https://socketry.github.io/async/guides/tasks/index) - This guide explains how asynchronous tasks work and how to use them.
27
27
 
28
28
  - [Best Practices](https://socketry.github.io/async/guides/best-practices/index) - This guide gives an overview of best practices for using Async.
29
29
 
@@ -35,6 +35,18 @@ Please see the [project documentation](https://socketry.github.io/async/) for mo
35
35
 
36
36
  Please see the [project releases](https://socketry.github.io/async/releases/index) for all releases.
37
37
 
38
+ ### v2.27.3
39
+
40
+ - Ensure trace attributes are strings, fixes integration with OpenTelemetry.
41
+
42
+ ### v2.27.2
43
+
44
+ - Fix `context/index.yaml` schema.
45
+
46
+ ### v2.27.1
47
+
48
+ - Updated documentation and agent context.
49
+
38
50
  ### v2.27.0
39
51
 
40
52
  - `Async::Task#stop` supports an optional `cause:` argument (that defaults to `$!`), which allows you to specify the cause (exception) for stopping the task.
@@ -76,19 +88,6 @@ Please see the [project releases](https://socketry.github.io/async/releases/inde
76
88
 
77
89
  - [Traces and Metrics Providers](https://socketry.github.io/async/releases/index#traces-and-metrics-providers)
78
90
 
79
- ### v2.19.0
80
-
81
- - [`Async::Scheduler` Debugging](https://socketry.github.io/async/releases/index#async::scheduler-debugging)
82
- - [Console Shims](https://socketry.github.io/async/releases/index#console-shims)
83
-
84
- ### v2.18.0
85
-
86
- - 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.
87
-
88
- ### v2.17.0
89
-
90
- - Introduce `Async::Queue#push` and `Async::Queue#pop` for compatibility with `::Queue`.
91
-
92
91
  ## See Also
93
92
 
94
93
  - [async-http](https://github.com/socketry/async-http) — Asynchronous HTTP client/server.
data/releases.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Releases
2
2
 
3
+ ## v2.27.3
4
+
5
+ - Ensure trace attributes are strings, fixes integration with OpenTelemetry.
6
+
7
+ ## v2.27.2
8
+
9
+ - Fix `context/index.yaml` schema.
10
+
11
+ ## v2.27.1
12
+
13
+ - Updated documentation and agent context.
14
+
3
15
  ## v2.27.0
4
16
 
5
17
  - `Async::Task#stop` supports an optional `cause:` argument (that defaults to `$!`), which allows you to specify the cause (exception) for stopping the task.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.27.1
4
+ version: 2.27.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file