59件ヒット
[1-59件を表示]
(0.045秒)
種類
- クラス (33)
- インスタンスメソッド (22)
- 文書 (4)
クラス
- WeakRef (22)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) - RefError (11)
- WeakMap (11)
-
_ _ getobj _ _ (11) -
weakref
_ alive? (11)
検索結果
先頭5件
-
WeakRef (38036.0)
-
weak reference を実現するクラスです。
...weak reference を実現するクラスです。
WeakRef オブジェクトは与えられたオブジェクトをポイントしますが、
ポイント先のオブジェクトは GC される可能性があります。
アクセスしようとしたときにオブジェクトが GC されてい......れば
WeakRef::RefError が発生します。
delegate も参照してください。
=== サンプルコード
require 'weakref'
foo = Object.new
ref = WeakRef.new(foo)
ref.some_method_of_foo... -
WeakRef
# weakref _ alive? -> bool (27117.0) -
参照先のオブジェクトがまだ生きていれば真を返します。 GC されていれば偽を返します。
...参照先のオブジェクトがまだ生きていれば真を返します。
GC されていれば偽を返します。... -
WeakRef
# _ _ getobj _ _ -> object (21012.0) -
自身の参照先のオブジェクトを返します。
...自身の参照先のオブジェクトを返します。
@raise WeakRef::RefError GC 済みのオブジェクトを参照した場合に発生します。
@see delegate... -
WeakRef
:: RefError (3016.0) -
GC されたオブジェクトを参照しようとしたときに発生する例外です。
...GC されたオブジェクトを参照しようとしたときに発生する例外です。... -
ObjectSpace
:: WeakMap (48.0) -
GC の対象になるオブジェクトへの weak reference を持つクラスです。主に WeakRef クラスの内部で使用されるため、weakref ライブラリ 経由で使用してください。
...GC の対象になるオブジェクトへの weak reference を持つクラスです。主に
WeakRef クラスの内部で使用されるため、weakref ライブラリ
経由で使用してください。... -
NEWS for Ruby 3
. 0 . 0 (42.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...e evaluated code. 4352 17419
* ConditionVariable
* ConditionVariable#wait may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Dir
* Dir.glob and Dir.[] now sort the results by default, and accept the `sort:` keyword option. 8709
* ENV
* ENV.exce......acktrace and Fiber#backtrace_locations provide per-fiber backtrace. 16815
* The limitation of Fiber#transfer is relaxed. 17221
* GC
* GC.auto_compact= and GC.auto_compact have been added to control when compaction runs. Setting `auto_compact=` to `true` will cause compaction to occur duri......lv
* rinda
* set
* securerandom
* shellwords
* tempfile
* tmpdir
* time
* tsort
* un
* weakref
* The following extensions are promoted to default gems from stdlib.
* digest
* io-nonblock
* io-wait
* nkf
* p...