Sha256: 982693cc872c9fdc0dcf4bd52553f82b84ede2cf4e100b45d4773f7cd896169b

Contents?: true

Size: 253 Bytes

Versions: 70

Compression:

Stored size: 253 Bytes

Contents

@module ref

ref value = Ref (spawn [ ! => loop value ])

loop value = receive [
  .set new-value => loop new-value
  p, id, .get => { send p (id, value); loop value }
]

@object Ref pid [
  set val = .set val > send pid
  get! = .get > send-wait pid
]

Version data entries

70 entries across 68 versions & 8 rubygems

Version Path
rouge-4.5.1 lib/rouge/demos/tulip
rouge-4.5.0 lib/rouge/demos/tulip
rouge-4.4.0 lib/rouge/demos/tulip
rouge-4.3.0 lib/rouge/demos/tulip
rouge-4.2.1 lib/rouge/demos/tulip
rouge-4.2.0 lib/rouge/demos/tulip
rouge-4.1.3 lib/rouge/demos/tulip
rouge-4.1.2 lib/rouge/demos/tulip
rouge-4.1.1 lib/rouge/demos/tulip
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/tulip
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/tulip
rouge-4.1.0 lib/rouge/demos/tulip
rouge-4.0.1 lib/rouge/demos/tulip
rouge-4.0.0 lib/rouge/demos/tulip
rouge-3.30.0 lib/rouge/demos/tulip
rouge-3.29.0 lib/rouge/demos/tulip
rouge-3.28.0 lib/rouge/demos/tulip
rouge-3.27.0 lib/rouge/demos/tulip
rouge-3.26.1 lib/rouge/demos/tulip
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/demos/tulip