Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juanchinovas/nativescript-native-object-pool

This is a tiny NativeScript's plugin to share objects references between threads (main and Workers)
https://github.com/juanchinovas/nativescript-native-object-pool

android ios nativescript nativescript-plugin object-pool

Last synced: 1 day ago
JSON representation

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

Awesome Lists containing this project

README

        

# nativescript-native-object-pool ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) & ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)

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:

```javascript
tns plugin add nativescript-native-object-pool
```

## Usage

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

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

## API

```typescript
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