Skip to content

packages/@greenpandastudios/aug-gpu/0.2.0/contracts.aug ​

GPU workers · Dependency source and specification

This is the exact dependency version used by this example.

Code ​

aug
// Generated by aug spec. This is a copy of the installed dependency source.
// aug-spec: "contracts.aug.md" explains this file. Read it before changes; refresh with aug spec.
GpuError(int code, string message) implements Error:
    explain() returns string:
        return message
aug
// Generated by aug spec. This is a copy of the installed dependency source.
// aug-spec: "contracts.aug.md" explains this file. Read it before changes; refresh with aug spec.
GpuError(int code, string message) implements Error {
    explain() returns string {
        return message
    }
}

Compiled specification ​

Interactions and sequences

GpuError · class · source ​

It implements Error. It takes code as an integer, kept read-only and message as a string, kept read-only.

GpuError.explain · source ​

It returns message. source

Checked interface
text
explain() returns string

Last updated:

The world runs on language