Creating Concurrent Tasks with the Runnable Interface
You implement the Runnable interface (of package java.lang
) to specify a task that can execute concurrently with other tasks. The Runnable
interface declares the single method run, which contains the code that defines the task that a Runnable
object should perform.
Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.