mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix traditional Ring example in Actor-model
This commit is contained in:
		
							parent
							
								
									20ad101701
								
							
						
					
					
						commit
						3a3000f577
					
				
				
				Notes:
				
					git
				
				2020-10-05 23:35:45 +09:00 
				
			
			
			
		
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -664,7 +664,7 @@ r = Ractor.new do
 | 
			
		|||
end
 | 
			
		||||
 | 
			
		||||
RN.times{
 | 
			
		||||
  Ractor.new r do |next_r|
 | 
			
		||||
  r = Ractor.new r do |next_r|
 | 
			
		||||
    next_r << Ractor.recv
 | 
			
		||||
  end
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue