File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,13 +37,9 @@ macro stateful(expr::Expr)
3737 $ ((:($ arg) for arg in new_expr. args). .. )
3838 end
3939 )
40- if expr. args[1 ]. head == Symbol (" ::" )
41- func_expr. args[1 ] = Expr (Symbol (" ::" ), func_expr. args[1 ], expr. args[1 ]. args[2 ])
42- end
40+ expr. args[1 ]. head == Symbol (" ::" ) && func_expr. args[1 ] = Expr (Symbol (" ::" ), func_expr. args[1 ], expr. args[1 ]. args[2 ])
4341 call_expr = deepcopy (expr)
44- if call_expr. args[1 ]. head == Symbol (" ::" )
45- call_expr. args[1 ] = call_expr. args[1 ]. args[1 ]
46- end
42+ call_expr. args[1 ]. head == Symbol (" ::" ) && call_expr. args[1 ] = call_expr. args[1 ]. args[1 ]
4743 call_expr. head = Symbol (" =" )
4844 call_expr. args[2 ] = :($ type_name ($ ((:($ arg) for arg in args). .. )))
4945 esc (quote
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function produce(v)
55 Base. schedule_and_wait (consumer, v)
66 return consumer. result
77end
8- produce (v... ) = produce (v)
8+ # produce(v...) = produce(v)
99
1010function consume (producer:: Task , values... )
1111 istaskdone (producer) && return producer. value
You can’t perform that action at this time.
0 commit comments