novuhq / novu-kotlin

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

Migrate API Extension functions from RunBlocking to Suspend functions #28

Closed mayorJAY closed 1 year ago

mayorJAY commented 1 year 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