513件ヒット
[1-100件を表示]
(0.071秒)
別のキーワード
ライブラリ
- ビルトイン (188)
- drb (72)
- fiber (8)
- irb (12)
-
irb
/ cmd / chws (24) -
irb
/ context (12) -
irb
/ extend-command (12) - json (12)
- observer (12)
- openssl (12)
- thwait (12)
クラス
- Data (3)
- Fiber (12)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (12) -
JSON
:: State (12) -
OpenSSL
:: X509 :: StoreContext (12) - Thread (181)
- ThreadsWait (12)
モジュール
- DRb (60)
- IRB (12)
-
IRB
:: ExtendCommandBundle (12)
キーワード
- CurrentContext (12)
- CurrentWorkingWorkspace (12)
- DRbServerNotFound (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 3
. 0 . 0 (5) - Observable (12)
- [] (12)
- alive? (12)
-
buffer
_ initial _ length (12) - config (12)
-
current
_ server (12) - define (3)
- drb (12)
- empty? (6)
- execute (12)
- fetch (8)
- finished? (6)
- front (12)
- here? (12)
- inspect (12)
-
install
_ extend _ commands (12) - irb (12)
-
irb
/ cmd / chws (12) - key? (12)
- keys (12)
- priority (12)
- priority= (12)
-
rb
_ thread _ current (12) - rdoc (12)
-
report
_ on _ exception (9) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / lock _ command (12) -
set
_ trace _ func (12) - status (12)
- stop? (12)
- thread (12)
-
thread
_ variable? (12) -
thread
_ variable _ get (12) -
thread
_ variable _ set (12) -
to
_ s (8) - uri (12)
- verify (12)
- パターンマッチ (12)
検索結果
先頭5件
-
Fiber
. current -> Fiber (21219.0) -
このメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。
...のメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。
//emlist[例:][ruby]{
fr = Fiber.new do
Fiber.current
end
fb = fr.resume
p fb.equal?(fr) # => true
p Fiber.current # => #<Fiber:0x91345e4>
p Fiber.current # => #<Fiber:0x91345e4>
//}... -
VALUE rb
_ thread _ current(void) (12200.0) -
現在実行中のスレッドを返します。
現在実行中のスレッドを返します。 -
DRb
. # current _ server -> DRb :: DRbServer (9201.0) -
「カレントサーバ」を返します。
...サーバとプライマリサーバは一致しますが、複数のサーバを
異なる URI で起動した場合などにはこの2つが異なる場合があります。
@raise DRb::DRbServerNotFound カレントサーバが存在しない場合に発生します
@see DRb.#primary_server... -
IRB
. CurrentContext -> IRB :: Context (9200.0) -
現在の irb に関する IRB::Context を返します。
...現在の irb に関する IRB::Context を返します。... -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (9016.0) -
irb 中の irb_current_working_workspace コマンドのための拡張を定義したク ラスです。
...irb 中の irb_current_working_workspace コマンドのための拡張を定義したク
ラスです。... -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace # execute(*obj) -> obj (6200.0) -
irb の self を返します。
...irb の self を返します。
@param obj 使用しません。... -
Thread
# thread _ variable _ get(key) -> object | nil (6124.0) -
引数 key で指定した名前のスレッドローカル変数を返します。
...変数(Fiber ローカル変数)と
異なり、Fiber を切り替えても同じ変数を返す事に注意してください。
例:
Thread.new {
Thread.current.thread_variable_set("foo", "bar") # スレッドローカル
Thread.current["foo"] = "bar" # Fiber ロー......ル
Fiber.new {
Fiber.yield [
Thread.current.thread_variable_get("foo"), # スレッドローカル
Thread.current["foo"], # Fiber ローカル
]
}.resume
}.join.value # => ['bar', nil]
この例の "bar" は Thread#thread_variable_get に......より得られ
た値で、nil はThread#[] により得られた値です。
@see Thread#thread_variable_set, Thread#[]
@see https://magazine.rubyist.net/articles/0041/0041-200Special-note.html... -
Thread
# thread _ variable _ set(key , value) (6118.0) -
引数 key で指定した名前のスレッドローカル変数に引数 value をセットしま す。
...カル変数(Fiber ローカル変数)と
異なり、セットした変数は Fiber を切り替えても共通で使える事に注意してく
ださい。
//emlist[例][ruby]{
thr = Thread.new do
Thread.current.thread_variable_set(:cat, 'meow')
Thread.current.thread_variable_set("dog", 'woo......f')
end
thr.join # => #<Thread:0x401b3f10 dead>
thr.thread_variables # => [:dog, :cat]
//}
@see Thread#thread_variable_get, Thread#[]... -
JSON
:: State # buffer _ initial _ length -> Integer (6116.0) -
This integer returns the current initial length of the buffer.
...This integer returns the current initial length of the buffer....