Skip to content

Commit 3a6ba35

Browse files
committed
Put the canonopts on {stream,future}.{read,write} instead of copying from canon lift/lower
1 parent f59b9eb commit 3a6ba35

File tree

5 files changed

+280
-235
lines changed

5 files changed

+280
-235
lines changed

design/mvp/Binary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ canon ::= 0x00 0x00 f:<core:funcidx> opts:<opts> ft:<typeidx> => (canon lift
294294
| 0x0c => (canon task.yield (core func)) 🔀
295295
| 0x0d => (canon waitable.drop (core func)) 🔀
296296
| 0x0e t:<typeidx> => (canon stream.new t (core func)) 🔀
297-
| 0x0f t:<typeidx> => (canon stream.read t (core func)) 🔀
298-
| 0x10 t:<typeidx> => (canon stream.write t (core func)) 🔀
297+
| 0x0f t:<typeidx> opts:<opts> => (canon stream.read t opts (core func)) 🔀
298+
| 0x10 t:<typeidx> opts:<opts> => (canon stream.write t opts (core func)) 🔀
299299
| 0x11 async?:<async?> => (canon stream.cancel-read async? (core func)) 🔀
300300
| 0x12 async?:<async?> => (canon stream.cancel-write async? (core func)) 🔀
301301
| 0x13 t:<typeidx> => (canon future.new t (core func)) 🔀
302-
| 0x14 t:<typeidx> => (canon future.read t (core func)) 🔀
303-
| 0x15 t:<typeidx> => (canon future.write t (core func)) 🔀
302+
| 0x14 t:<typeidx> opts:<opts> => (canon future.read t opts (core func)) 🔀
303+
| 0x15 t:<typeidx> opts:<opts> => (canon future.write t opts (core func)) 🔀
304304
| 0x16 async?:<async?> => (canon future.cancel-read async? (core func)) 🔀
305305
| 0x17 async?:<async?> => (canon future.cancel-write async? (core func)) 🔀
306306
async? ::= 0x00 =>

0 commit comments

Comments
 (0)