Waits for the run() method to complete.
Waits for the run() method to complete.
Waits for the run() method to start.
Waits for the run() method to start.
Checks to see if an exception has been raised by an asynchronous thread and if so rethrows it.
Checks to see if an exception has been raised by an asynchronous thread and if so rethrows it. Use this method before code that assumes the threads have not encountered an exception.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Returns true if the run() method has completed, false otherwise.
Returns true if the run() method has completed, false otherwise.
The method that does the asynchronous work.
The method that does the asynchronous work.
Returns true if there exists more elements, false otherwise
Returns true if there exists more elements, false otherwise
The name of this runnable.
The name of this runnable. This is used as the name of the thread in thread() as well. The name is created based on the class name and the number of AsyncRunnables already created.
Gets the next item.
Gets the next item.
Starts this Runnable in a daemon thread.
Starts this Runnable in a daemon thread.
optionally the name of the thread, otherwise a name is created based on the class name and the number of threads already created.
Returns true if the run() method has started, false otherwise.
Returns true if the run() method has started, false otherwise.
Creates a new thread wrapping this runnable; the thread is not started.
Creates a new thread wrapping this runnable; the thread is not started.
Returns a throwable if an exception occurred in the run() method, None otherwise.
Returns a throwable if an exception occurred in the run() method, None otherwise.
Executes the given block of code.
Executes the given block of code. If an InterruptedException is thrown, throws a RuntimeException with the given message. Use this method for blocking code that when interrupted should not be recoverable.
the message to use if an InterruptedException is thrown by the block of code
the block of code to execute
Returns an Awaitable that completes when the run() method has completed.
Returns an Awaitable that completes when the run() method has completed. Returns the throwable if an exception was encountered, None otherwise.
The method to execute if an exception occurs in the asynchronous thread.
The method to execute if an exception occurs in the asynchronous thread. This should not block.
The method to execute upon successfully execution of the run method or an exception occurs.
The method to execute upon successfully execution of the run method or an exception occurs. This should not block.
Returns an Awaitable that completes when the run() method has started.
Returns an Awaitable that completes when the run() method has started. Returns the throwable if an exception was encountered, None otherwise.
(asyncIterator: MonadOps[T]).filter(p)
(asyncIterator: MonadOps[T]).flatMap(f)
(asyncIterator: MonadOps[T]).map(f)
(asyncIterator: MonadOps[T]).withFilter(p)
An asynchronous wrapper for an Iterator. A separate thread will be created to consume the source iterator. Will buffer up to bufferSize elements before the blocking when consuming the source.
the type of object to consume