RosettaCodeData/Task/Same-Fringe/Ada/same-fringe-3.ada

12 lines
440 B
Ada
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
generic
with procedure Process_Data(Item: Data);
with function Stop return Boolean;
with procedure Finish;
package Bin_Trees.Traverse is
task Inorder_Task is
entry Run(Tree: Tree_Type);
-- this will call each Item in Tree and, at the very end, it will call Finish
-- except when Stop becomes true; in this case, the task terminates
end Inorder_Task;
end Bin_Trees.Traverse;