Kotlin / Kotlin/kotlinx-nodejs

http.createServer should accept suspend function

Open
#19 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.