MyClass(options: Deferred<Map<String, String>> = emptyMap()) {
// This constructor doesn't actually compile, its an example of what i would like to achieve
//some stuff
}
The map passed in here is ultimately wrapped in a promise. currently i have a js snippet that essentially does
Copy code
options.then { new MyClass(it) }
ideally i would like to move this into my kotlin code but I would still like to handle