When it appears that a party or an attorney of record of a party to a civil action is a member of the legislature of this state, and that the legislature is in session, the action shall be continued until 10 days after the legislature has adjourned, unless the party or attorney upon the call of the action for trial waives the benefit of this section. When it appears that a party or an attorney of record of a party to a civil action is a member of the Alaska Legislative Council, the Legislative Budget and Audit Committee, or one of their subcommittees, the action shall be continued when the legislative council, budget and audit committee, or the subcommittee, as the case may be, is holding a meeting, unless the party or attorney upon the call of the action for trial waives the benefit of this section. When it is necessary to file a brief or memorandum of law in an action that has been continued under the provisions of this section, the action shall be continued for a time sufficient to prepare and file the brief or memorandum.