Kotlin / Kotlin/kotlinx-nodejs
http.createServer should accept suspend function
Open
- Dominant language
- Kotlin
- Stars
- 224
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
In http.createServer(RequestListener), `RequestListener` should be a suspend function. In traditional Js, we can set this function to async and call await inside of it, But without RequestListener being `suspend ` we can not call `Promise.await()`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the external declaration for http.createServer(RequestListener) in the Kotlin Node.js bindings; the issue does not name a file or test. Confirm that the declaration supports a suspend RequestListener and verify that a Kotlin/JS caller can await Promise inside it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, nodejs
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100