Foundry.Operation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
|||
r |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when the operation has completed successfully. |
Fields¶
- Inherited:
Class Details¶
- class Foundry.Operation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a long-running operation in the development environment with progress tracking.
Foundry.Operationprovides a base class for operations that require progress reporting and cancellation support. It integrates with the authentication system and provides a unified interface for managing asynchronous operations with user feedback and error handling.- classmethod file_progress(current_num_bytes, total_num_bytes, user_data)¶
- classmethod new()¶
- Return type:
- await_()¶
- Returns:
a [class`Dex`.Future].
- Return type:
Gets a [class`Dex`.Future] that resolves when the operation has cancelled or completed.
- cancel()¶
- complete()¶
- dup_auth_provider()¶
- Return type:
- set_auth_provider(auth_provider)¶
- Parameters:
auth_provider (
Foundry.AuthProvider) –
Signal Details¶
- Foundry.Operation.signals.completed(operation)¶
- Signal Name:
completed- Flags:
- Parameters:
operation (
Foundry.Operation) – The object which received the signal
Emitted when the operation has completed successfully.
This signal is emitted when [method`Foundry`.Operation.complete] is called to indicate that the operation has finished successfully.
New in version 1.1.
Property Details¶
- Foundry.Operation.props.auth_provider¶
- Name:
auth-provider- Type:
- Default Value:
- Flags:
- Foundry.Operation.props.progress¶
- Name:
progress- Type:
- Default Value:
0.0- Flags:
- Foundry.Operation.props.subtitle¶
- Name:
subtitle- Type:
- Default Value:
- Flags: