Skip to content

Desarrollos varios, Pof, inventos, descartes, magias, clevers, fusiones, coffeeCode, brainFucks...

License

Notifications You must be signed in to change notification settings

CoEValencia/fwk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Framework Async - WIP

API

Command Dispatcher Async | src - test

    fun add(command : String , callbackList : kotlin.collections.List<CompletableFuture<T>> ) : CommandDispatcherAsync<T>
    
    fun add(command : String, callback : CompletableFuture<T> ) : CommandDispatcherAsync<T>

    fun contains(command : String) : Boolean

    fun remove(command : String, callback : CompletableFuture<T>) : CommandDispatcherAsync<T>

    fun remove(command : String) : CommandDispatcherAsync<T>

    fun dispatch(command : String) : CommandDispatcherAsync<T>

    fun dispatchOnce(command : String) : CommandDispatcherAsync<T>

    fun dispatchAll(command : String) :  CompletableFuture<Void>

    fun <T> dispatchAny(command : String) : CompletableFuture<T>
    
    fun dispatch(command: String, executor: Executor): CommandDispatcherAsync<T>
    
    fun dispatchOnce(command: String,executor: Executor): CommandDispatcherAsync<T>

    fun dispatchAll(command: String,executor: Executor): CompletableFuture<Void>

    fun <T> dispatchAny(command: String,executor: Executor): CompletableFuture<T>

    fun size() : Int

Safety Promise Async | src - test

    default CompletableFuture<Void> executeRunnable(Runnable runnable);

    default<T> CompletableFuture<T> executeSupply(Supplier<T> supplier);

    default CompletableFuture<Void> executeRunnable(Runnable runnable, executor: Executor);

    default <T> CompletableFuture<T> executeSupply(Supplier<T> supplier, executor: Executor);

Logger | src - test

    default void loggerTrace(Object str);

    default void loggerDebug(Object str);

    default void loggerInfo(Object str);

    default void loggerError(Object str);

Buffered Image Memory From Component | src - test

    fun invoke(cmp: Component): BufferedImage 
    

@Author : Victor Bolinches Marin

@Author : vicboma1

About

Desarrollos varios, Pof, inventos, descartes, magias, clevers, fusiones, coffeeCode, brainFucks...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published