This change fixes the provider implementation of `Construct` for multi-lang components written in Node.js to wait for any in-flight RPCs to finish before returning the results, s.t. all registered child resources are created. In additional, invocations of `construct` are now serialized so that each call runs one after another, avoiding concurrent runs, since `construct` modifies global state. We'll follow-up with a more general concurrency fix to allow nested `construct` calls within the same provider.
12 lines
307 B
C#
12 lines
307 B
C#
// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
|
|
|
|
using Pulumi;
|
|
|
|
class Component : Pulumi.ComponentResource
|
|
{
|
|
public Component(string name, ComponentResourceOptions opts = null)
|
|
: base("testcomponent:index:Component", name, ResourceArgs.Empty, opts, remote: true)
|
|
{
|
|
}
|
|
}
|