Skip to content

Commit

Permalink
fix(pipeline): close in finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jul 3, 2023
1 parent 11a91b4 commit d893af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: tasker
version: 2.1.2
version: 2.1.3
crystal: ">= 0.36.1"

dependencies:
Expand Down
4 changes: 2 additions & 2 deletions src/tasker/pipeline.cr
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Tasker

# :nodoc:
def finalize
stop
close
end

# shutdown processing
Expand All @@ -96,8 +96,8 @@ class Tasker
begin
@idle = true
input = @in.receive
t1 = Time.monotonic
@idle = false
t1 = Time.monotonic
output = @work.call input
t2 = Time.monotonic
@time = t2 - t1
Expand Down

0 comments on commit d893af6

Please sign in to comment.