るりまサーチ

最速Rubyリファレンスマニュアル検索!
29件ヒット [1-29件を表示] (0.039秒)
トップページ > クエリ:|[x] > クエリ:-[x] > クエリ:notify[x]

別のキーワード

  1. _builtin |
  2. set |
  3. ipaddr |
  4. nilclass |
  5. integer |

検索結果

Rinda::TupleSpace#notify(event, pattern, sec = nil) -> Rinda::NotifyTemplateEntry (18313.0)

event で指定した種類のイベントの監視を開始します。

...ッチした場合にのみ報告されます。

イベントが生じた場合、
このメソッドの返り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::NotifyTemplateEntry#each を用いて報告を受け取ります。

sec で監視期間を秒数で指定できます。 nil で無...
...数)

=== 例
require 'rinda/tuplespace'

tuplespace = Rinda::TupleSpace.new
observer = tuplespace.notify("write", ["xyz", nil, nil])
Therad.new do
observer.each{|event, tuple| p event, tuple }
end

tuplespace.write(["xyz", 0, 1])
tuplespace.write(["pqr", 0, 1])
tuplespace....

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (18309.0)

@todo

...@todo

@param opts

@see Shell#notify...

Shell.notify(*opts) {|message| ... } -> String (18302.0)

@todo

@todo

Shell::SystemCommand#notify(*opts) -> String (18209.0)

@todo

...@todo

@param opts

@see Shell#notify...