{
  "schema_version": 2,
  "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture",
  "title": "GearsFuture",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/",
  "summary": "Allows asynchronous processing of records.",
  "aliases": [
    "/operate/oss_and_stack/stack-with-enterprise/gears-v1/jvm/classes/gearsfuture/"
  ],
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-09-21T16:36:38+01:00",
  "children": [
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/seterror",
      "summary": "Sets an error message.",
      "title": "SetError",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/seterror/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/setresult",
      "summary": "Sets a computation to run asynchronously.",
      "title": "SetResult",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/setresult/"
    }
  ],
  "page_type": "content",
  "content_hash": "f944035c3a84a8aad8e0e17b978f376063e3d09e6bdebdd058f4c02c1c69ec7e",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The `GearsFuture` class allows asynchronous processing of records in another thread.\n\nYou can use a `GearsFuture` object with the following [`GearsBuilder`](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder) functions:\n\n- [`asyncFilter`](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/asyncfilter)\n- [`asyncForeach`](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/asyncforeach)\n- [`asyncMap`](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/asyncmap)"
    },
    {
      "id": "functions",
      "title": "Functions",
      "role": "content",
      "text": "| Function | Description |\n| --- | --- |\n| [setError](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/seterror/) | Sets an error message. |\n| [setResult](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsfuture/setresult/) | Sets a computation to run asynchronously. |"
    }
  ],
  "examples": []
}
