Class: Celluloid::ActorProxy
- Inherits:
-
Object
- Object
- Celluloid::ActorProxy
- Defined in:
- lib/celluloid/actor_proxy.rb
Overview
A proxy object returned from Celluloid::Actor.spawn/spawn_link which dispatches calls and casts to normal Ruby objects which are running inside of their own threads.
Instance Attribute Summary (collapse)
-
- (Object) mailbox
readonly
Returns the value of attribute mailbox.
Instance Method Summary (collapse)
- - (Boolean) alive?
- - (Object) class
-
- (Object) future(method_name, *args, &block)
Create a Celluloid::Future which calls a given method.
-
- (ActorProxy) initialize(mailbox, klass = "Object")
constructor
A new instance of ActorProxy.

- - (Object) to_s
Constructor Details
- (ActorProxy) initialize(mailbox, klass = "Object")
A new instance of ActorProxy
8 9 10 |
# File 'lib/celluloid/actor_proxy.rb', line 8 def initialize(mailbox, klass = "Object") @mailbox, @klass = mailbox, klass end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(meth, *args, &block)
method_missing black magic to call bang predicate methods asynchronously
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/celluloid/actor_proxy.rb', line 72 def method_missing(meth, *args, &block) meth = meth.to_s # bang methods are async calls if meth.match(/!$/) meth.sub!(/!$/, '') Actor.async @mailbox, meth, *args, &block else Actor.call @mailbox, meth, *args, &block end end |
Instance Attribute Details
- (Object) mailbox (readonly)
Returns the value of attribute mailbox
6 7 8 |
# File 'lib/celluloid/actor_proxy.rb', line 6 def mailbox @mailbox end |
Instance Method Details
- (Boolean) alive?
36 37 38 |
# File 'lib/celluloid/actor_proxy.rb', line 36 def alive? @mailbox.alive? end |
- (Object) class
16 17 18 |
# File 'lib/celluloid/actor_proxy.rb', line 16 def class Actor.call @mailbox, :send, :class end |
- (Object) future(method_name, *args, &block)
Create a Celluloid::Future which calls a given method
51 52 53 |
# File 'lib/celluloid/actor_proxy.rb', line 51 def future(method_name, *args, &block) Actor.future @mailbox, method_name, *args, &block end |
- (Object) inspect
44 45 46 47 48 |
# File 'lib/celluloid/actor_proxy.rb', line 44 def inspect Actor.call @mailbox, :inspect rescue DeadActorError "#<Celluloid::Actor(#{@klass}) dead>" end |
- (Boolean) is_a?(klass)
20 21 22 |
# File 'lib/celluloid/actor_proxy.rb', line 20 def is_a?(klass) Actor.call @mailbox, :is_a?, klass end |
- (Boolean) kind_of?(klass)
24 25 26 |
# File 'lib/celluloid/actor_proxy.rb', line 24 def kind_of?(klass) Actor.call @mailbox, :kind_of?, klass end |
- (Object) methods(include_ancestors = true)
32 33 34 |
# File 'lib/celluloid/actor_proxy.rb', line 32 def methods(include_ancestors = true) Actor.call @mailbox, :methods, include_ancestors end |
- (Boolean) respond_to?(meth)
28 29 30 |
# File 'lib/celluloid/actor_proxy.rb', line 28 def respond_to?(meth) Actor.call @mailbox, :respond_to?, meth end |
- (Object) send(meth, *args, &block)
12 13 14 |
# File 'lib/celluloid/actor_proxy.rb', line 12 def send(meth, *args, &block) Actor.call @mailbox, :send, meth, *args, &block end |
- (Object) terminate
Terminate the associated actor
56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/celluloid/actor_proxy.rb', line 56 def terminate raise DeadActorError, "actor already terminated" unless alive? begin send :terminate rescue DeadActorError # In certain cases this is thrown during termination. This is likely # a bug in Celluloid's internals, but it shouldn't affect the caller. # FIXME: track this down and fix it, or at the very least log it end # Always return nil until a dependable exit value can be obtained nil end |
- (Object) to_s
40 41 42 |
# File 'lib/celluloid/actor_proxy.rb', line 40 def to_s Actor.call @mailbox, :to_s end |


Rain Coat Painting
First Name
Last Name
Address
City
Please select city
Calgary
Lethbridge
Red Deer
Nisku
Other- please specify below
Enter City name below
Provinces Radio Button Field
Alberta
Quebec
Ontario
Saskatchewan
New Foundland
Nova Scotia
PEI
Northwest Territories
Yukon
British Columbia
Manitoba
Postal Code
Message
Email Address
Phone number
Preferred means of contact
Email
Phone Text
Phone Call
Select Room to Paint
Please select rooms
Kitchen
Bathroom
Bedroom
Living Room
Dining Room


Caley Brock is a full stack software engineer at VTS in Toronto. Her other full time software roles have been with civic & education focused non-profit organizations, but she's also worked for agencies, startups, and large tech companies through her computer science program at the University of Waterloo. She thrives when just the right amount of process, empathy, and interdisciplinary structures allow her to do technical work for thoughtful products.
Caley is also passionate about supporting diverse and inclusive communities in software and does this through teaching workshops for novice programmers and mentoring newcomers to the industry.
If you're interested in working with me or booking me for a workshop or speaking engagement, check out my resume and reach out.
Teaching and Public Speaking
- LaunchDarkly Galaxy Conference, Speaker Supercharge Your Release Pipeline With These LaunchDarkly Configs
- ReactJS Ottawa, Workshop Instructor Intro to React with Doughnuts Workshop
- GDI Seattle, Instructor and Curriculum Development Computer Science Fundamentals Course
- Code for Canada, Workshop Instructor Software in the Public Service fellow training


{% extends "layout.html" %} {% block in_head %} {# Includes for LocusZoom.js (from CDN) #} {% endblock %} {% block contained %}
Phenotypes with the most-significant associations for this locus:
| Top p-value in gene | Phenotype |
|---|
{{ pheno.num_cases }} cases, {{ pheno.num_controls }} controls.
{% elif 'num_samples' in pheno %}{{ pheno.num_samples }} samples
{% endif %} {% if pheno.category %}Category: {{ pheno.category}}
{% endif %}


[gecode-users] Gecode/J arithmetic constraints
penche21 penche21
penche21 at hotmail.com
Mon Apr 2 23:47:35 CEST 2007
Hi there,
May be a linear() constraint with coefficient [1,1] and array of [a,b]
linear (this, coeff, Array, IRT_EQ, varZ); could help.
-- There might be another way to express (but I dont know)
Cheers,
penche
>From: Lars Frantzen <lars.frantzen at isti.cnr.it>
>To: users at gecode.org
>Subject: [gecode-users] Gecode/J arithmetic constraints
>Date: Mon, 02 Apr 2007 17:56:01 +0200
>
>Dear list,
>
>I am new to constraint solving, to Gecode, and to this list, and have a
>quite basic question (I guess). I am mainly interested in my Ph.D.
>project in solving arithmetic constraints. I saw that Gecode offers here
>beside others "plus", "minus" and "sqr".
>
>I cannot find those in Gecode/J. Do I miss something? I want to express
>a constraint like z = x + y (over finite domains).
>
>Thanks and cheers,
>Lars
>
>
>
>_______________________________________________
>Gecode users mailing list
>users at gecode.org
>https://www.gecode.org/mailman/listinfo/gecode-users
_________________________________________________________________
Hava durumunu bizden ögrenin ve evden öyle çikin!
http://www.msn.com.tr/havadurumu/
More information about the gecode-users
mailing list


Good News!
You are ready to work.
Your passport is all you need to meet the i-9 eligibility requirement. You are now ready to start the job search.
Did you want to learn how to get another ID?
You are ready to work.
Your passport is all you need to meet the i-9 eligibility requirement. You are now ready to start the job search.
Did you want to learn how to get another ID?