A future represents an output of a closure, either the return value of the function, or the value of a global variable written by the function. A future is created by calling the Closure.getReturn or Closure.getGlobal method.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ScriptGroup.Future\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFuture\n======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/ScriptGroup.Future \"View this page in Java\") \n\n```\nclass Future\n```\n\n|---|----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.renderscript.ScriptGroup.Future](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nAn opaque class for futures\n\nA future represents an output of a closure, either the return value of the function, or the value of a global variable written by the function. A future is created by calling the [Closure.getReturn](/reference/kotlin/android/renderscript/ScriptGroup.Closure#getReturn()) or [Closure.getGlobal](/reference/kotlin/android/renderscript/ScriptGroup.Closure#getGlobal(android.renderscript.Script.FieldID)) method.\n\nSummary\n-------"]]