Skip to content

Renderer: Return self in init(). #30556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ class Renderer {
* A reference to the promise which initializes the renderer.
*
* @private
* @type {?Promise}
* @type {?Promise<this>}
* @default null
*/
this._initPromise = null;
Expand Down Expand Up @@ -711,7 +711,7 @@ class Renderer {
* Initializes the renderer so it is ready for usage.
*
* @async
* @return {Promise} A Promise that resolves when the renderer has been initialized.
* @return {Promise<this>} A Promise that resolves when the renderer has been initialized.
*/
async init() {

Expand Down Expand Up @@ -780,7 +780,7 @@ class Renderer {
this._animation.start();
this._initialized = true;

resolve();
resolve( this );

} );

Expand Down
Loading