Skip to content

Comments

Async and error handling features#24

Merged
jwoertink merged 3 commits intoluckyframework:mainfrom
rmarronnier:claude-suggestions
Jun 23, 2025
Merged

Async and error handling features#24
jwoertink merged 3 commits intoluckyframework:mainfrom
rmarronnier:claude-suggestions

Conversation

@rmarronnier
Copy link
Contributor

Made with Claude Code.
Still not sure if Pulsar is meant to be used out of avram logging context

@jwoertink
Copy link
Member

```crystal
Database::QueryEvent.subscribe do |event, duration|
puts Pulsar.elaspted_text(duration) # "2.3ms"
puts Pulsar.elapsed_text(duration) # "2.3ms"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! 😂

Copy link
Member

@jwoertink jwoertink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! I don't really see anything bad here. Looks like it just adds the new feature but keeps the old code alone. Plus the added benefit of error handling. I guess the lint CI failed due to ameba being so outdated lol.

@rmarronnier
Copy link
Contributor Author

@jwoertink : I tried to update the ameba version to fix the ci. I don't know if it's the way. You can merge if you want or wait for other comments :-)

@jwoertink
Copy link
Member

@rmarronnier Yeah, I think bumping it up fixed the compilation error, but now there's just the few small linting errors. I think outside of those it should be all good 👍

@jwoertink jwoertink merged commit 54f8aa8 into luckyframework:main Jun 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants