Skip to content

This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)

License

Notifications You must be signed in to change notification settings

juanchinovas/nativescript-native-object-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nativescript-native-object-pool apple & android

This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)

Installation

Copy and paste the code below to add this plugin into your app:

tns plugin add nativescript-native-object-pool

Usage

All methods are statics. Just copy the import statament below and invoke the desire method.

import { NativeObjectPool } from "nativescript-native-object-pool";

API

class NativeObjectPool {
    static add(key: string, value: any): boolean;
    static get(key: string): any;
    static remove(key: string): boolean;
    static removeAll(): void;
}

License

Apache License Version 2.0, January 2004

About

This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published