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
|
+ Break change
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.6.1+1"
|
version: "0.6.1+2"
|
||||||
sky_engine:
|
sky_engine:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -115,7 +115,9 @@ enum ThreadState { ready, running, suspended, finished }
|
|||||||
|
|
||||||
class ThreadedVM extends VM {
|
class ThreadedVM extends VM {
|
||||||
ThreadState get state => ThreadState.values[_Bindings.pkpy_tvm_get_state(pointer)];
|
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.
|
/// Run a given source on a threaded virtual machine. The excution will be started in a new thread.
|
||||||
void exec_async(String source)
|
void exec_async(String source)
|
||||||
{
|
{
|
||||||
|
@ -89,7 +89,15 @@ enum ThreadState { ready, running, suspended, finished }
|
|||||||
|
|
||||||
class ThreadedVM extends VM {
|
class ThreadedVM extends VM {
|
||||||
ThreadState get state => ThreadState.values[_Bindings.pkpy_tvm_get_state(pointer)];
|
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.
|
/// Run a given source on a threaded virtual machine. The excution will be started in a new thread.
|
||||||
void exec_async(String source)
|
void exec_async(String source)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: pocketpy
|
name: pocketpy
|
||||||
description: A lightweight Python interpreter for game engines.
|
description: A lightweight Python interpreter for game engines.
|
||||||
version: 0.6.1+1
|
version: 0.6.1+2
|
||||||
homepage: https://pocketpy.dev
|
homepage: https://pocketpy.dev
|
||||||
repository: https://github.com/blueloveth/pocketpy
|
repository: https://github.com/blueloveth/pocketpy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user