public static function tid(): int
    {
        if (!ServerUtil::coroutineIsEnabled()) {
            return -1;
        }

        $id = SwCoroutine::getuid();

        return self::$idMap[$id] ?? $id;
    }
public static function tid(): int
    {
        if (!ServerUtil::coroutineIsEnabled()) {
            return -1;
        }

        $id = SwCoroutine::getuid();

        return self::$idMap[$id] ?? $id;
    }
public static function tid ( ) : int { if ( ! ServerUtil :: coroutineIsEnabled ( ) ) { return - 1 ; } $ id = SwCoroutine :: getuid ( ) ; return self :: $ idMap [ $ id ] ?? $ id ; }
get top coroutine id
@return int
get top coroutine id