| OLD | NEW |
| 1 | 1 |
| 2 class _ActorManagerImpl extends Actor implements ActorManager { | 2 class _ActorManagerImpl extends Actor implements ActorManager { |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * This determines the next worker to be used for creating an actor. | 5 * This determines the next worker to be used for creating an actor. |
| 6 */ | 6 */ |
| 7 int _nextWorkerIndex; | 7 int _nextWorkerIndex; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Total number of isolates. | 10 * Total number of isolates. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 if (allowCreation) anActor._manager = _manager; | 144 if (allowCreation) anActor._manager = _manager; |
| 145 else anActor._manager = null; | 145 else anActor._manager = null; |
| 146 anActor._allowUIAccess = allowUIAccess; | 146 anActor._allowUIAccess = allowUIAccess; |
| 147 if (allowUIAccess) anActor._windowProxy = _windowProxy; | 147 if (allowUIAccess) anActor._windowProxy = _windowProxy; |
| 148 else anActor._windowProxy = new _NullWindowProxy(); | 148 else anActor._windowProxy = new _NullWindowProxy(); |
| 149 anActor.me.send(msg.messageName, msg.params, msg.replyTo); | 149 anActor.me.send(msg.messageName, msg.params, msg.replyTo); |
| 150 }; | 150 }; |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 | 153 |
| 154 interface ActorManager factory _ActorManagerImpl { | 154 interface ActorManager default _ActorManagerImpl { |
| 155 | 155 |
| 156 /** | 156 /** |
| 157 * Creates an Actor Manager with the specified number of isolates as | 157 * Creates an Actor Manager with the specified number of isolates as |
| 158 * background processes. | 158 * background processes. |
| 159 */ | 159 */ |
| 160 ActorManager(int numOfIsolates); | 160 ActorManager(int numOfIsolates); |
| 161 | 161 |
| 162 /** | 162 /** |
| 163 * Creates an actor using the specified factory and sends a message to it. | 163 * Creates an actor using the specified factory and sends a message to it. |
| 164 */ | 164 */ |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 _to.send(_msgName, params, replyTo); | 214 _to.send(_msgName, params, replyTo); |
| 215 } | 215 } |
| 216 | 216 |
| 217 /** | 217 /** |
| 218 * Returns the name of the message which is responsible to handle this | 218 * Returns the name of the message which is responsible to handle this |
| 219 * Reply. | 219 * Reply. |
| 220 */ | 220 */ |
| 221 String get message() => _msgName; | 221 String get message() => _msgName; |
| 222 } | 222 } |
| 223 | 223 |
| OLD | NEW |