You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that master can require JDK 8 we can begin retrofitting the API to accept lambdas. One relatively easy step would be to make sure we accept lambdas for all the listeners which are typically SMIs (Single Method Interfaces).
For backwards compatibility we should still accept SMIs but wrap them into lambdas under the hood.
The text was updated successfully, but these errors were encountered:
A proposal to use lambdas in listeners objects. Some callback
interfaces have been introduced when necessary (not necessary
for e.g. ShutdownListener). Lambdas are wrapped into the original
listener interfaces. Provide a simple test to experiment with the
API.
References #246
Now that master can require JDK 8 we can begin retrofitting the API to accept lambdas. One relatively easy step would be to make sure we accept lambdas for all the listeners which are typically SMIs (Single Method Interfaces).
For backwards compatibility we should still accept SMIs but wrap them into lambdas under the hood.
The text was updated successfully, but these errors were encountered: