mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
up
This commit is contained in:
parent
1044475f70
commit
8f788807ed
@ -1,4 +1,4 @@
|
||||
## 0.6.1+1
|
||||
## 0.6.1+2
|
||||
|
||||
+ Break change
|
||||
|
||||
|
@ -108,7 +108,7 @@ packages:
|
||||
path: ".."
|
||||
relative: true
|
||||
source: path
|
||||
version: "0.6.1+1"
|
||||
version: "0.6.1+2"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
|
@ -116,6 +116,8 @@ enum ThreadState { ready, running, suspended, finished }
|
||||
class ThreadedVM extends VM {
|
||||
ThreadState get state => ThreadState.values[_Bindings.pkpy_tvm_get_state(pointer)];
|
||||
|
||||
|
||||
|
||||
/// Run a given source on a threaded virtual machine. The excution will be started in a new thread.
|
||||
void exec_async(String source)
|
||||
{
|
||||
|
@ -90,6 +90,14 @@ enum ThreadState { ready, running, suspended, finished }
|
||||
class ThreadedVM extends VM {
|
||||
ThreadState get state => ThreadState.values[_Bindings.pkpy_tvm_get_state(pointer)];
|
||||
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
terminate();
|
||||
Future.delayed(Duration(milliseconds: 150)).then((_) => _Bindings.pkpy_delete(pointer));
|
||||
}
|
||||
|
||||
|
||||
/// Run a given source on a threaded virtual machine. The excution will be started in a new thread.
|
||||
void exec_async(String source)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: pocketpy
|
||||
description: A lightweight Python interpreter for game engines.
|
||||
version: 0.6.1+1
|
||||
version: 0.6.1+2
|
||||
homepage: https://pocketpy.dev
|
||||
repository: https://github.com/blueloveth/pocketpy
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user