mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			249 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			249 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
core.log("info", "Initializing asynchronous environment")
 | 
						|
 | 
						|
function core.job_processor(func, serialized_param)
 | 
						|
	local param = core.deserialize(serialized_param)
 | 
						|
 | 
						|
	local retval = core.serialize(func(param))
 | 
						|
 | 
						|
	return retval or core.serialize(nil)
 | 
						|
end
 |