{"id":"compute.device--computeFenceContract","name":"computeFenceContract","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing computeFenceContract","description":"A compute fence contract record carrying id, queueId, status, submittedTick, completedTick, and related state.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[],"returns":"void","members":[{"name":"id","kind":"field","type":"int","description":"Stores id as int.","signature":"int id","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"queueId","kind":"field","type":"text","description":"Stores queue id as text.","signature":"text queueId","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"status","kind":"field","type":"text","description":"Stores status as text.","signature":"text status","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"submittedTick","kind":"field","type":"int","description":"Stores submitted tick as int.","signature":"int submittedTick","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"completedTick","kind":"field","type":"int","description":"Stores completed tick as int.","signature":"int completedTick","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"cancellationRequested","kind":"field","type":"bool","description":"Stores cancellation requested as bool.","signature":"bool cancellationRequested","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"errorCode","kind":"field","type":"text","description":"Stores error code as text.","signature":"text errorCode","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"errorMessage","kind":"field","type":"text","description":"Stores error message as text.","signature":"text errorMessage","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"computeFenceContract","kind":"constructor","parameters":[{"name":"id","type":"int","description":"Id."},{"name":"queueId","type":"text","description":"Queue id."},{"name":"submittedTick","type":"int","description":"Submitted tick."}],"returns":"void","signature":"computeFenceContract(int id, text queueId, int submittedTick)","description":"Compute fence contract.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"IsTerminal","kind":"method","parameters":[],"returns":"bool","signature":"IsTerminal() returns bool","description":"Is terminal.","tags":["thing","method","compute.device"],"exampleId":"method-IsTerminal-9","updated":"2026-09-09"},{"name":"Succeeded","kind":"method","parameters":[],"returns":"bool","signature":"Succeeded() returns bool","description":"Succeeded.","tags":["thing","method","compute.device"],"exampleId":"method-Succeeded-10","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.device"],"exampleId":"method-Describe-11","updated":"2026-09-09"}],"tags":["compute","compute.device","cpu","device","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/device/resource_runtime.yh","line":123,"sha256":"2a92eeb7f80b133685f1201e550fc5c4e9cd54eda12e6a9f9d05bf033efb60f0"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use computeFenceContract","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.device\n\n// Inspect device capability catalogs and model resource lifetimes and placement decisions.\ncomputeFenceContract sample = computeFenceContract(1, \"queue Id\", 1)\nConsole.Log(Text.From(sample.id))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computefencecontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"1175a7a57fd0c618c254a49ecc58a2c3acaed270a77df7a2057bad0c355c038f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsTerminal-9","title":"computeFenceContract.IsTerminal","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Is terminal.\ncomputeFenceContract instance = computeFenceContract(1, \"queue Id\", 1)\nbool result = instance.IsTerminal()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computefencecontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"c90f313b3d0d7d2d9d4b56c7bd2f7da0ec95d587c2c08398631c7a290d98f546","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Succeeded-10","title":"computeFenceContract.Succeeded","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Succeeded.\ncomputeFenceContract instance = computeFenceContract(1, \"queue Id\", 1)\nbool result = instance.Succeeded()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computefencecontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"c8f06bd673f656cc85063f6237c2ab034a5a98cfaa3e9a2bae7f67b1ef37e0d3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-11","title":"computeFenceContract.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Describe.\ncomputeFenceContract instance = computeFenceContract(1, \"queue Id\", 1)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computefencecontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"76f18c4a7dde2ee247551d283ad1e36331a84c7319e00ed73b170978f81ffd2c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["id","queueId","status","submittedTick","completedTick","cancellationRequested","errorCode","errorMessage","computeFenceContract","IsTerminal","Succeeded","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--computeFenceContract","json":"https://demonhunterlabs.com/reference/items/compute.device--computeFenceContract.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--computeFenceContract.md"}
