Skip to content

Commit

Permalink
Merge pull request #3 from avsm/master
Browse files Browse the repository at this point in the history
fix Lwt_fiber fast path
  • Loading branch information
duckpilot committed Jun 17, 2011
2 parents 8dbab94 + 9a656ba commit 48116cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lwt-fiber/lwt_fiber.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ let await t =
match !active_prompt with
| None -> failwith "await called outside start"
| Some p -> p in
active_prompt := None;

match Lwt.poll t with
| Some v -> v
| None ->
active_prompt := None;
Delimcc.shift0 p begin fun k ->
let ready _ =
active_prompt := Some p;
Expand Down

0 comments on commit 48116cf

Please sign in to comment.