Eruvin8: 1
כֵּיצַד מִשְׁתַּתְּפִין בִּתְחוּמִין? מֵנִיחַ אֶת הֶחָבִית, וְאוֹמֵר: ,,הֲרֵי זֶה לְכָל בְּנֵי עִירִי — לְכָל מִי שֶׁיֵּלֵךְ לְבֵית הָאֵבֶל אוֹ לְבֵית הַמִּשְׁתֶּה. וְכֹל שֶׁקִּבֵּל עָלָיו מִבְּעוֹד יוֹם, מֻתָּר; מִשֶּׁתֶּחְשַׁךְ, אָסוּר, שֶׁאֵין מְעָרְבִין מִשֶּׁתֶּחְשַׁךְ.
How do we make a communal eruvei techumin? One places a barrel, and declares: ‘‘Let this be for all the people of my town’’ — for whoever will go to a house of mourning or a house of rejoicing. Whoever accepted this while it was yet day is per-mitted; after dark, he is prohibited, because we cannot make an eruv after dark.