./devel/ruby-fiber-storage, Provides a compatibility shim for fiber storage

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.1.0, Package name: ruby32-fiber-storage-0.1.0, Maintainer: pkgsrc-users

Fiber::Storage

This gem provides a shim for Fiber.[], Fiber.[]=, Fiber#storage,
Fiber#storage=, which was introduced in Ruby 3.2.

Motivation

Ruby 3.2 introduces inheritable fiber storage for per-request or
per-operation state. This gem provides a shim for Ruby 3.1 and earlier to
make adoption easier. It isn't able to provide the full range of features,
but it should be sufficient for most use cases.

Notably, it does not support inheritance across threads or lazy Enumerator.
This is a limitation of the shim implementation.


Master sites:

Filesize: 10 KB

Version history: (Expand)