0
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-05-29 06:03:12 +00:00
Files
PocketMine-MP/tests/phpstan/stubs/pmmpthread.stub

36 lines
718 B
Plaintext
Raw Normal View History

<?php
2023-05-20 01:29:26 +01:00
namespace pmmp\thread;
/**
* @implements \IteratorAggregate<array-key, mixed>
*/
2023-05-20 01:29:26 +01:00
abstract class ThreadSafe implements \IteratorAggregate{
/**
* @template TReturn
* @param \Closure() : TReturn $function
* @param mixed ...$args
* @return TReturn
*/
public function synchronized(\Closure $function, mixed ...$args) : mixed{}
}
/**
* @template TKey of array-key
* @template TValue
2023-05-20 01:29:26 +01:00
* @implements \ArrayAccess<TKey, TValue>
*/
2023-05-20 01:29:26 +01:00
final class ThreadSafeArray extends ThreadSafe implements \Countable, \ArrayAccess{
/**
* @return TValue|null
*/
public function pop() : mixed{}
/**
* @return TValue|null
*/
public function shift() : mixed{}
2023-05-20 01:29:26 +01:00
}