Yaron Minsky avatar Yaron Minsky committed 505f722

updates

Comments (0)

Files changed (5)

workshop/async/build_all.sh

 
 EXT=native
 
-./build.sh \
-    simple.$EXT \
-    time_loop.$EXT \
-    manifest.$EXT \
-    pipe_manifest.$EXT \
-    count_lines.$EXT \
+corebuild \
+    simple.native \
+    time_loop.native \
+    manifest.native \
+    pipe_manifest.native \
 
+

workshop/async/manifest.ml

 ;;
 
 let () =
-  don't_wait_for (run ());
+  ignore (run () : unit Deferred.t);
   never_returns (Scheduler.go ());

workshop/async/simple.ml

 open Core.Std
 open Async.Std
 
-let def =
+let (_:unit Deferred.t) =
   after (sec 0.5)
   >>= fun () ->
   printf "Hello ";
   after (sec 1.)
   >>= fun () ->
   printf "world!\n";
+  after (sec 2.)
+  >>= fun () ->
   shutdown 0;
   return ()
 

workshop/count-lines-1/main.ml

 let command =
   Command.group
     ~summary:"A bunch of counting tools"
-    [ "count-lines", count_lines_cmd
-    ]
+    [ "count-lines", count_lines_cmd ]
 
 let () = Command.run command

workshop/part_II.org

 ** Deferred
 ** Pipe
 ** Monitor
-
 * Simple Examples
  - interactive
  - [[file:async/manifest.ml][file:async/manifest.ml]]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.