Fan.Sys.Actor.@typeof C# (CSharp) Method

@typeof() public method

public @typeof ( ) : Type
return Type
        public override Type @typeof()
        {
            if (m_type == null) m_type = Type.find("concurrent::Actor");
              return m_type;
        }

Usage Example

Example #1
0
        public static void make_(Actor self, ActorPool pool, Func receive)
        {
            // check pool
            if (pool == null)
            {
                throw NullErr.make("pool is null").val;
            }

            // check receive method
            if (receive == null && self.@typeof().qname() == "concurrent::Actor")
            {
                throw ArgErr.make("must supply receive func or subclass Actor").val;
            }
            if (receive != null && !receive.isImmutable())
            {
                throw NotImmutableErr.make("Receive func not immutable: " + receive).val;
            }

            // init
            self.m_pool    = pool;
            self.m_receive = receive;
            self.m_queue   = new Queue();
        }
All Usage Examples Of Fan.Sys.Actor::@typeof