novuhq / novu-kotlin

Kotlin SDK for Novu - The open-source notification infrastructure for engineers. 🚀
MIT License
19 stars 8 forks source link

Migrate API Extension functions from RunBlocking to Suspend functions #28

Closed mayorJAY closed 9 months ago

mayorJAY commented 9 months ago

This is important because a runBlocking call blocks the current thread which is not efficient. See https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html