Skip to content

A library for PocketMine-PMMP about Async/Promise/Coroutine/Thread/GreenThread and other non-blocking methods. The method is based on Fibers & Generator & Processes, requires you to have php version from >= 8.1

License

Notifications You must be signed in to change notification settings

VennDev/LibVapmPMMP

Repository files navigation

LibVapmPMMP

  • This is Virion Async/Promise/Coroutine/Thread/GreenThread for PocketMine-PMMP

Composer

composer require vennv/vapm-pmmp

How to setup ?

  • Download the Phar officially here
  • Take them and put them in your Virion folder. If you do not understand what Virion is, then click here
  • To implement and use methods, you must first use this library's method at the top of the plugin's onEnable function
  • Example:
protected function onEnable() : void
{
    VapmPMMP::init($this);
}
  • What is VapmPMMP::init($this) ?
/**
* @param PluginBase $plugin
*
* This method is called by VapmPMMP::init(), it will run event loop.
*/
public static function init(PluginBase $plugin) : void;

About

A library for PocketMine-PMMP about Async/Promise/Coroutine/Thread/GreenThread and other non-blocking methods. The method is based on Fibers & Generator & Processes, requires you to have php version from >= 8.1

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages