~/bend-docscommunity

usage/JSON_GPU.bend checks

raw source on the hub · import 0x3d2147650fe101ae3c3e4a95333b4238/usage/JSON_GPU.bend as JSON_GPU

2 imports
import Base
import ../libs/JSON.bend as Json

Definitions

def show_result source · line 4 · raw

@result:Result<&1, &1, 0x3d2147650fe101ae3c3e4a95333b4238/libs/JSON.Error, 0x3d2147650fe101ae3c3e4a95333b4238/libs/JSON.Value> -> String

def show_batch source · line 11 · raw

@batch:0x3d2147650fe101ae3c3e4a95333b4238/libs/JSON.BatchResult -> String

def show_optional source · line 18 · raw

@batch:Maybe<&1, 0x3d2147650fe101ae3c3e4a95333b4238/libs/JSON.BatchResult> -> String

def check source · line 25 · raw

@ok:Bool -> IO(Unit)

def main source · line 34 · raw

IO(Unit)

A native executable uses the GPU when available. --gpu off exercises the CPU fallback. JavaScript executes this example sequentially.