Top "Callable" questions

A task that returns a result and may throw an exception.

How to pass a parameter to Scikit-Learn Keras model function

I have the following code, using Keras Scikit-Learn Wrapper, which work fine: from keras.models import Sequential from keras.layers …

python function scikit-learn keras callable
Android Callable

How to implement Callable to return boolean and do something ? I need use external Thread to connect to FTP server, …

java android callable executor
How can I wrap a method so that I can kill its execution if it exceeds a specified timeout?

I have a method that I would like to call. However, I'm looking for a clean, simple way to kill …

java multithreading concurrency callable
Java - Define a timeout for Callable within a ExecutorCompletionService

I've got the following problem using ExecutorCompletionService. I want to call a lot of Callable in different Threads. These Callable …

java multithreading timeout executorservice callable
How to return a value using CompletableFuture

I created an example, i want to know how can I return a value using the CompletableFuture ? I also changed …

java multithreading callable countdownlatch completable-future
Read large file multithreaded

I am implementing a class that should receive a large text file. I want to split it in chunks and …

java multithreading future callable mappedbytebuffer
Constructor for callable object in JavaScript

How can I make constructor for callable object in JavaScript? I've attempted various ways, like following. The example there is …

javascript constructor callable
How to pass arguments to callable method specifically for register_shutdown_function?

I have method, in this method may be happened fatal error, for catching this error I make this class a { …

php oop arguments callable
Populate list or tuple from callable or lambda in python

This is a problem I've come across a lot lately. Google doesn't seem to have an answer so I bring …

python arrays list tuples callable