hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
707 stars 180 forks source link

Use CompletableFuture instead of Future for asnyc processing / cancelation #760

Open laeubi opened 1 year ago

laeubi commented 1 year ago

Currently smbj uses a special Future class (AFuture) looking at the implementation it seems using the Java CompletableFuture could be a more flexible alternative that then can be exposed to the user to allow event based processing, while currently one needs to use polling for that purpose.