mirror of
				https://github.com/launchbadge/sqlx.git
				synced 2025-11-04 07:22:53 +00:00 
			
		
		
		
	Add a note about AsyncDrop
This commit is contained in:
		
							parent
							
								
									febcd9eb1f
								
							
						
					
					
						commit
						1e983a2a8b
					
				@ -51,6 +51,13 @@ async fn main() -> Result<(), failure::Error> {
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Notes
 | 
			
		||||
 | 
			
		||||
 * [`AsyncDrop`](https://internals.rust-lang.org/t/async-await-the-challenges-besides-syntax-cancellation/10287/13) - Many of the
 | 
			
		||||
   envisoned APIs would greatly benefit from something like this. There are cases where an object _must_ be closed or it would
 | 
			
		||||
   be a memory leak (in either the client or server). I intended to provide both an `async fn close()` and a sync Drop impl
 | 
			
		||||
   that blocks the thread and shouts a warning.. but that is obviously not ideal.
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
Licensed under either of
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user