actor now needs explicit become when changing behavior (state)
This commit is contained in:
		
							parent
							
								
									f86428a2c7
								
							
						
					
					
						commit
						06aa41de77
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -30,7 +30,8 @@ | |||
|   (setf state (+ state msg)) | ||||
|   (if (/= 0 state)  | ||||
|     (forward state state syns env)) | ||||
|   (lambda (msg) (cumulate msg state syns env))) | ||||
|   (actor:become  | ||||
|     (lambda (msg) (cumulate msg state syns env)))) | ||||
| 
 | ||||
| ;;;; publish/subscribe - pubsub service | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue