<commit_before><?php
namespace Icicle\Concurrent;

/**
 * Interface for objects that can be synchronized across contexts.
 */
interface SynchronizableInterface
{
    /**
     * Acquires a lock on the context.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function lock();

    /**
     * Unlocks the context.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function unlock();

    /**
     * Invokes a function while maintaining a lock for the calling context.
     *
     * @param callable $callback The function to invoke.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function synchronized(callable $callback);
}<commit_msg>Update docs<commit_after><?php
namespace Icicle\Concurrent;

/**
 * Interface for objects that can be synchronized across contexts.
 */
interface SynchronizableInterface
{
    /**
     * Acquires a lock on the object.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function lock();

    /**
     * Unlocks the object.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function unlock();

    /**
     * Invokes a function while maintaining a lock on the object.
     *
     * @param callable $callback The function to invoke.
     *
     * @return \Icicle\Promise\PromiseInterface
     */
    public function synchronized(callable $callback);
}
{'fraction_non_alphanumeric': 0.09971509971509972, 'fraction_numerical': 0.0, 'mean_word_length': 2.5037406483790523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4646168', 'n_tokens_mistral': 392, 'n_tokens_neox': 379, 'n_words': 114}