-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
❓ Guidance
Affected Languages
-
TypeScriptorJavascript - [X ]
Python -
Java - .NET (
C#,F#, ...) -
Go
General Information
- JSII Version: 1.34.0
- Platform: OSX
The Question
I have an async class method defined like
export class ProjectResources {
...
public static async createProjectResources(
props: ProjectResourcesProps
): Promise<ProjectResources> {
// Some more async calls here.
}
}
That is producing jsii.errors.JSIIError: createProjectResources is an async method, use "begin" instead when it is executed in python.
Is there any way I should be defining or using async methods in python differently?
The TS code compiles to Python and packages without any errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.