-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
justfile command and generate extensions jsons
- Loading branch information
Showing
5 changed files
with
1,846 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
172 changes: 172 additions & 0 deletions
172
tket2-py/tket2/extensions/_json_defs/tket2/futures.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
{ | ||
"version": "0.1.0", | ||
"name": "tket2.futures", | ||
"extension_reqs": [], | ||
"types": { | ||
"Future": { | ||
"extension": "tket2.futures", | ||
"name": "Future", | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"description": "A value that is computed asynchronously", | ||
"bound": { | ||
"b": "Explicit", | ||
"bound": "A" | ||
} | ||
} | ||
}, | ||
"values": {}, | ||
"operations": { | ||
"Dup": { | ||
"extension": "tket2.futures", | ||
"name": "Dup", | ||
"description": "Duplicate a Future. The original Future is consumed and two Futures are returned", | ||
"signature": { | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"body": { | ||
"input": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "tket2.futures", | ||
"id": "Future", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"output": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "tket2.futures", | ||
"id": "Future", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
}, | ||
{ | ||
"t": "Opaque", | ||
"extension": "tket2.futures", | ||
"id": "Future", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"extension_reqs": [] | ||
} | ||
}, | ||
"binary": false | ||
}, | ||
"Free": { | ||
"extension": "tket2.futures", | ||
"name": "Free", | ||
"description": "Consume a future without reading it.", | ||
"signature": { | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"body": { | ||
"input": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "tket2.futures", | ||
"id": "Future", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"output": [], | ||
"extension_reqs": [] | ||
} | ||
}, | ||
"binary": false | ||
}, | ||
"Read": { | ||
"extension": "tket2.futures", | ||
"name": "Read", | ||
"description": "Read a value from a Future, consuming it", | ||
"signature": { | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"body": { | ||
"input": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "tket2.futures", | ||
"id": "Future", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"output": [ | ||
{ | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
], | ||
"extension_reqs": [] | ||
} | ||
}, | ||
"binary": false | ||
} | ||
} | ||
} |
Oops, something went wrong.