mirror of
				https://github.com/AmberGraceRblx/luau-promise.git
				synced 2025-11-04 12:09:17 +00:00 
			
		
		
		
	Style cleanup
This commit is contained in:
		
							parent
							
								
									3c9881a478
								
							
						
					
					
						commit
						bb68da5e5b
					
				
					 1 changed files with 10 additions and 7 deletions
				
			
		| 
						 | 
					@ -294,13 +294,16 @@ function Promise:await()
 | 
				
			||||||
		local resultLength
 | 
							local resultLength
 | 
				
			||||||
		local bindable = Instance.new("BindableEvent")
 | 
							local bindable = Instance.new("BindableEvent")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		self:andThen(function(...)
 | 
							self:andThen(
 | 
				
			||||||
 | 
								function(...)
 | 
				
			||||||
				resultLength, result = pack(...)
 | 
									resultLength, result = pack(...)
 | 
				
			||||||
				bindable:Fire(true)
 | 
									bindable:Fire(true)
 | 
				
			||||||
		end, function(...)
 | 
								end,
 | 
				
			||||||
 | 
								function(...)
 | 
				
			||||||
				resultLength, result = pack(...)
 | 
									resultLength, result = pack(...)
 | 
				
			||||||
				bindable:Fire(false)
 | 
									bindable:Fire(false)
 | 
				
			||||||
		end)
 | 
								end
 | 
				
			||||||
 | 
							)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		local ok = bindable.Event:Wait()
 | 
							local ok = bindable.Event:Wait()
 | 
				
			||||||
		bindable:Destroy()
 | 
							bindable:Destroy()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue